Method: Thimble::Thimble#map
- Defined in:
- lib/thimble.rb
#map(&block) ⇒ ThimbleQueue
This will use the manager and transform your thimble queue. requires a block
42 43 44 45 46 47 48 49 |
# File 'lib/thimble.rb', line 42 def map(&block) @logger.debug("starting map in #{@name} with id #{Thread.current.object_id}") @running = true manage_workers(&block) while @running @result.close @logger.debug("finishing map in #{@name} with id #{Thread.current.object_id}") @result end |