Sha256: 4a4293e554da9ea1678d6018519936b1bc6c10fb52e9be2b410052d3bb6f4b5c
Contents?: true
Size: 761 Bytes
Versions: 8
Compression:
Stored size: 761 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 # @note {#interval Time} accuracy cannot be guaranteed. # # {Base Task} occurring after {#interval} seconds. # # @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> class Delayed < Periodic # @note Will call {#done} right after. # # @return [Object, nil] # Return value of the configured task or `nil` if it's not # {#interval time} yet. def call( *args ) return if !call? call_task( *args ).tap { done } end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems