Class: WarpCore::SerialDispatchQueue

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



11
12
13
# File 'lib/warpcore/dispatch.rb', line 11

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