Class: Raktr::Tasks::OneOff

Inherits:
Base
  • Object
show all
Defined in:
lib/raktr/tasks/one_off.rb

Overview

Task occurring at the next tick and then marking itself as Base#done.

Instance Attribute Summary

Attributes inherited from Base

#owner

Instance Method Summary collapse

Methods inherited from Base

#done, #hash, #initialize, #to_proc

Constructor Details

This class inherits a constructor from Raktr::Tasks::Base

Instance Method Details

#call(*args) ⇒ Object

Performs the task and marks it as Base#done.

Returns:

  • (Object)

    Return value of the task.



21
22
23
24
25
# File 'lib/raktr/tasks/one_off.rb', line 21

def call( *args )
    call_task( *args )
ensure
    done
end