class EXEL::Processors::AsyncProcessor

Implements the async instruction by using the configured async provider to run a block asynchronously.

Attributes

provider[R]

Public Class Methods

new(context) click to toggle source
# File lib/exel/processors/async_processor.rb, line 9
def initialize(context)
  @context = context
  @provider = EXEL.async_provider.new(context)
end

Public Instance Methods

process(block) click to toggle source
# File lib/exel/processors/async_processor.rb, line 14
def process(block)
  @provider.do_async(block)
end