Spec-Zone.ru › Dart 2

dart:io

watch method

Stream<ProcessSignal> watch()

Watch for process signals.

The following ProcessSignals can be listened to:

  • ProcessSignal.sighup.
  • ProcessSignal.sigint. Signal sent by e.g. CTRL-C.
  • ProcessSignal.sigterm. Not available on Windows.
  • ProcessSignal.sigusr1. Not available on Windows.
  • ProcessSignal.sigusr2. Not available on Windows.
  • ProcessSignal.sigwinch. Not available on Windows.

Other signals are disallowed, as they may be used by the VM.

A signal can be watched multiple times, from multiple isolates, where all callbacks are invoked when signaled, in no specific order.

Implementation

Stream<ProcessSignal> watch() => _ProcessUtils._watchSignal(this);

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-io/ProcessSignal/watch.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API