method
next_wait
v1_9_1_378 -
Show latest stable
- Class:
ThreadsWait
next_wait(nonblock = nil)public
Waits until any of the specified threads has terminated, and returns the one that does.
If there is no thread to wait, raises ErrNoWaitingThread. If nonblock is true, and there is no terminated thread, raises ErrNoFinishedThread.