Method: Magent::Async::Proxy#commit!

Defined in:
lib/magent/async.rb

#commit!(method_name, args) ⇒ Object



37
38
39
40
41
42
43
44
45
# File 'lib/magent/async.rb', line 37

def commit!(method_name, args)
  if Magent.sync_mode
    @target.send(method_name, *args)
  else
    @channel.push(@target, [method_name, args], @priority)
  end

  @target
end