Class: Arachni::Reactor::Tasks::OneOff

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

Overview

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

Author:

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 Arachni::Reactor::Tasks::Base

Instance Method Details

#call(*args) ⇒ Object

Performs the task and marks it as Base#done.

Returns:

  • (Object)

    Return value of the task.



22
23
24
25
26
# File 'lib/arachni/reactor/tasks/one_off.rb', line 22

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