Class: Raft::Goliath::EventMachineAsyncProvider

Inherits:
AsyncProvider show all
Defined in:
lib/raft/goliath.rb

Instance Method Summary collapse

Instance Method Details

#awaitObject



199
200
201
202
203
204
205
# File 'lib/raft/goliath.rb', line 199

def await
  f = Fiber.current
  until yield
    EM.next_tick {f.resume}
    Fiber.yield
  end
end