Sha256: 12af8ff9d037591119f05eb043210c793b1861256c3cc161df7a972efe57c8c5
Contents?: true
Size: 476 Bytes
Versions: 1
Compression:
Stored size: 476 Bytes
Contents
require 'singleton' require 'gb_dispatch/manager' class CentralDispatch include Singleton def dispatch_async(block=nil) GBDispatch::Manager.instance.run_async_on_queue GBDispatch::Manager.instance.get_queue do block ? block.call : yield end end class << self def dispatch_async(block=nil) GBDispatch::Manager.instance.run_async_on_queue GBDispatch::Manager.instance.get_queue do block ? block.call : yield end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gb_dispatch-0.0.1 | lib/gb_dispatch/central_dispatch.rb |