Class: WarpCore::ParallelDispatchQueue

Inherits:
Object
  • Object
show all
Includes:
SuckerPunch::Job
Defined in:
lib/warpcore/dispatch.rb

Instance Method Summary collapse

Instance Method Details

#perform(block = nil) ⇒ Object



19
20
21
# File 'lib/warpcore/dispatch.rb', line 19

def perform(block = nil)
  block.call() if block.respond_to?(:call)
end