lib/polyphony/core/thread_pool.rb
# Adds a task to be performed asynchronously on a thread from the pool. This
# method does not block. The task will be performed once a thread becomes
# available.
#
# @param &block [Proc] given block
# @return [Polyphony::ThreadPool] self
Adds a task to be performed asynchronously on a thread from the pool. This
method does not block. The task will be performed once a thread becomes
available.
Adds a task to be performed asynchronously on a thread from the pool . This method does not block . The task will be performed once a thread becomes available .
def cast(&block)
      setup unless @task_queue
      @task_queue << [block, nil]
      self
    end
def cast ( & block ) setup unless @task_queue @task_queue << [ block , nil ] self end
Adds a task to be performed asynchronously on a thread from the pool.
Adds a task to be performed asynchronously on a thread from the pool .
None
Polyphony::ThreadPool
block
<not_specific>
&block
<not_specific>
None