mutex.sleep(timeout = nil) â number
Instance Public methods
Releases the lock and sleeps timeout
seconds if it is given
and non-nil or forever. Raises ThreadError
if
mutex
wasn't locked by the current thread.
Note that this method can wakeup without explicit Thread#wakeup call. For example, receiving signal and so on.
Please login to continue.