lib/isono/thread_pool.rb
# Pass a block to a worker thread. The job is queued until the
# worker thread found.
# @param [Bool] immediage
# @param [Proc] blk A block to be proccessed on a worker thread.
Pass a block to a worker thread. The job is queued until the
worker thread found.
Pass a block to a worker thread . The job is queued until the worker thread found .
def pass(immediate=true, &blk)
      if immediate && member_thread?
        return blk.call
      end
      @queue << blk
    end
def pass ( immediate = true , & blk ) if immediate && member_thread? return blk . call end @queue << blk end
Pass a block to a worker thread.
Pass a block to a worker thread .
immediate
blk
blk A block to be proccessed on a worker thread.
blk A block to be proccessed on a worker thread .