Sha256: 3e34b8674d0bf477fd2aa6958175a159e08256e73f2dc9a343300c78a6fe152d

Contents?: true

Size: 649 Bytes

Versions: 7

Compression:

Stored size: 649 Bytes

Contents

=begin

    This file is part of the Arachni::Reactor project and may be subject to
    redistribution and commercial restrictions. Please see the Arachni::Reactor
    web site for more information on licensing and terms of use.

=end

module Arachni
class Reactor
class Tasks

# {Base Task} occurring at the next tick and then marking itself as {#done}.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
class OneOff < Base

    # Performs the task and marks it as {#done}.
    #
    # @return   [Object]
    #   Return value of the task.
    def call( *args )
        call_task( *args )
    ensure
        done
    end

end

end
end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-reactor-0.1.3.2 lib/arachni/reactor/tasks/one_off.rb
arachni-reactor-0.1.3.1 lib/arachni/reactor/tasks/one_off.rb
arachni-reactor-0.1.3 lib/arachni/reactor/tasks/one_off.rb
arachni-reactor-0.1.2 lib/arachni/reactor/tasks/one_off.rb
arachni-reactor-0.1.1 lib/arachni/reactor/tasks/one_off.rb
arachni-reactor-0.1.0 lib/arachni/reactor/tasks/one_off.rb
arachni-reactor-0.1.0.beta5 lib/arachni/reactor/tasks/one_off.rb