class Async::Condition

def signal(value = nil)

Returns:
  • (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)
	waiting = @waiting
	@waiting = []
	
	waiting.each do |fiber|
		fiber.resume(value) if fiber.alive?
	end
	
	return nil
end