class Async::Condition
def signal(value = nil)
-
(void)
-
Other tags:
- See: Task.yield - which is responsible for handling value.
Parameters:
-
value
() -- The value to return to the waiting fibers.
def signal(value = nil) # TODO: Should we hot-swap @waiting - so that tasks can wait on this condition again? while task = @waiting.pop task.resume(value) end return nil end