[MacRuby-devel] [MacRuby] #477: Need GCD wrapper for dispatch_once

MacRuby ruby-noreply at macosforge.org
Tue Dec 8 20:54:08 PST 2009


#477: Need GCD wrapper for dispatch_once
----------------------------------------+-----------------------------------
 Reporter:  ernest.prabhakar@…          |       Owner:  lsansonetti@…        
     Type:  enhancement                 |      Status:  new                  
 Priority:  minor                       |   Milestone:  MacRuby 0.5          
Component:  MacRuby                     |    Keywords:                       
----------------------------------------+-----------------------------------

Comment(by lsansonetti@…):

 {{{
 @io ||= File.open('hey')
 }}}

 would become

 {{{
 Dispatch.once { @io = File.open('hey') }
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/477#comment:5>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list