Sha256: 78ecf2c55f63d06e3378a52b2d93dc0037eddd2ff2b3f7addc5cd7b1e66c9933

Contents?: true

Size: 606 Bytes

Versions: 3

Compression:

Stored size: 606 Bytes

Contents

=begin

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

=end

class Raktr
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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
raktr-0.0.3 lib/raktr/tasks/one_off.rb
raktr-0.0.2 lib/raktr/tasks/one_off.rb
raktr-0.0.1 lib/raktr/tasks/one_off.rb