Sha256: 084c51059a3fa4a1a744fac615310383837bbf233bed6f7c618a9882e3229774
Contents?: true
Size: 264 Bytes
Versions: 1
Compression:
Stored size: 264 Bytes
Contents
require 'fiber' require 'eventmachine' module EventMachine::SyncDefer module_function def defer &block fiber = Fiber.current EventMachine.defer(lambda{ yield }, lambda{ |result| fiber.resume(result)}) Fiber.yield end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sync-defer-0.9.0 | lib/eventmachine/sync-defer.rb |