Class: Raft::Goliath::EventMachineAsyncProvider
- Inherits:
-
AsyncProvider
- Object
- AsyncProvider
- Raft::Goliath::EventMachineAsyncProvider
- Defined in:
- lib/raft/goliath.rb
Instance Method Summary collapse
Instance Method Details
#await ⇒ Object
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 |