class Async::Condition

def signal(value = nil)

@parameter value [Object | Nil] The value to return to the waiting fibers.
Signal to a given task that it should resume operations.
def signal(value = nil)
	waiting = @waiting
	@waiting = []
	
	waiting.each do |fiber|
		Fiber.scheduler.resume(fiber, value) if fiber.alive?
	end
	
	return nil
end