Class: Sync::EM::PG
- Inherits:
-
EM::PG
- Object
- EM::PG
- Sync::EM::PG
- Defined in:
- lib/sync-em/pg.rb,
lib/sync-em/pg/sequel.rb
Direct Known Subclasses
Defined Under Namespace
Classes: PGconn, ReConnectionPool, Sequel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ PG
constructor
A new instance of PG.
Constructor Details
Class Method Details
._sync ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/sync-em/pg.rb', line 8 def self._sync f = Fiber.current resp = yield resp.callback{ |r| f.resume(r) } resp.errback{ |r| f.resume(r) } Fiber.yield end |