Function Signal.wait
waits for the event to trigger
This function is guaranteed to sleep.
Parameters
Name | Description |
---|---|
timeout | sets a timeout for the wait. |
Throws
TimeoutExpired if the timeout expires.
Any other exception injected to this fiber using Reactor.throwInFiber