Module: ActiveAsync::Async::ClassMethods
- Defined in:
- lib/active_async/async.rb
Instance Method Summary collapse
Instance Method Details
#async(method, *args) ⇒ Object
32 33 34 |
# File 'lib/active_async/async.rb', line 32 def async(method, *args) ActiveAsync.queue_adapter.enqueue(self.to_s, CLASS_IDENTIFIER, method, *args) end |
#perform(*args) ⇒ Object
36 37 38 |
# File 'lib/active_async/async.rb', line 36 def perform(*args) ActiveAsync::Async.perform(self.to_s, CLASS_IDENTIFIER, *args) end |