Class: MogileFS::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/emogilefs.rb

Instance Method Summary collapse

Instance Method Details

#async(method, *args, &block) ⇒ Object



109
110
111
112
113
# File 'lib/emogilefs.rb', line 109

def async(method, *args, &block)
  Thread.current[:mogile_async] = true
  req = self.send method, *args
  req.callback(&block)
end