#478: Need GCD wrapper for custom sources ----------------------------------------+----------------------------------- Reporter: ernest.prabhakar@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- While GCD custom sources may seem exotic, they're really just accumulators. http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPag... http://developer.apple.com/mac/articles/cocoa/introblocksgcd.html -> Custom Events Example http://paste.lisp.org/display/86524 The API should just be: adder = Dispatch::Source.for_adding(queue, mask, &block) orer = Dispatch::Source.for_oring(queue, mask, &block) adder.merge (data) -- Ticket URL: <http://www.macruby.org/trac/ticket/478> MacRuby <http://macruby.org/>