Class: TorqueBox::Messaging::Task
- Inherits:
-
Object
- Object
- TorqueBox::Messaging::Task
- Defined in:
- lib/task.rb
Class Method Summary collapse
Class Method Details
.async(method_name, params = Hash.new) ⇒ Object
4 5 6 7 8 |
# File 'lib/task.rb', line 4 def self.async(method_name, params = Hash.new) Thread.new { self.new.send(method_name, params) } end |