Method: Async::Condition#wait

Defined in:
lib/async/condition.rb

#waitObject

Queue up the current fiber and wait on yielding the task.

Returns:

  • (Object)


34
35
36
37
38
# File 'lib/async/condition.rb', line 34

def wait
	@waiting << Fiber.current
	
	Task.yield
end