The message
event is emitted when the program inside this space sends a message via process.send()
.
The error
event is emitted when the program inside this space throws an Error.
The rejection
event is emitted when the program inside this space occurs an unhandled promise rejection.
Sends a message to the program inside this space.
Any type of value can be sent. In the some space types, the message is restricted by JSON.stringify
; recursive data and non-JSON-serializable values cannot to be sent.
Stops this space.
Returns a promise object that resolves when the given predicate returns true.
Waits for that the worker has started.
Waits for that the program inside this space stops.
Generated using TypeDoc
Returns true if this space is running.