Provides basic interprocess signalling. A script running in a node.js process may wait on a signal sent by another script running in the same or another process.
Methods
(static) clearSignals()
Clears all previously sent signals
(static) once() → {Promise}
Resolves once when a signal is sent
Returns:
A promise which is resolved when the signal is sent
- Type
- Promise
(static) send(signal)
Sends a signal
Parameters:
Name | Type | Description |
---|---|---|
signal |
String | Name of the signal to send. |