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
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 |