Queue up the current fiber and wait on yielding the task.
Returns:
34 35 36 37 38
# File 'lib/async/condition.rb', line 34 def wait @waiting << Fiber.current Task.yield end