Class: Raft::Goliath::EventMachineAsyncProvider

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

Instance Method Summary collapse

Instance Method Details

#awaitObject



196
197
198
199
200
201
202
# File 'lib/raft/goliath.rb', line 196

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