Module: ResqueExtensions::ObjectMethods
- Defined in:
- lib/resque_extensions.rb
Instance Method Summary collapse
-
#async(*args) ⇒ Object
call this method asynchronously.
Instance Method Details
#async(*args) ⇒ Object
call this method asynchronously
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/resque_extensions.rb', line 36 def async(*args) async_method = ResqueExtensions::AsyncMethod.new(self, *args) if ResqueExtensions.async == true async_method.enqueue! # just call inline else async_method.perform end end |