Method: Qpid::Proton::WorkQueue#add

Defined in:
lib/core/work_queue.rb

#add {|| ... } ⇒ void

Note:

Thread Safe: may be called in any thread.

This method returns an undefined value.

Add a block of code to be invoked in sequence.

Yields:

  • ()

    the block will be invoked with no parameters in the appropriate thread context

Raises:

  • (StoppedError)

    if the queue is closed and cannot accept more work



49
50
51
# File 'lib/core/work_queue.rb', line 49

def add(&block)
  schedule(0, &block)
end