class Concurrent::ScheduledTask

def reschedule(delay)

Raises:
  • (ArgumentError) - When given a time that is in the past

Returns:
  • (Boolean) - true if successfully rescheduled else false

Parameters:
  • delay (Float) -- the number of seconds to wait for before executing the task
def reschedule(delay)
  delay = delay.to_f
  raise ArgumentError.new('seconds must be greater than zero') if delay < 0.0
  synchronize{ ns_reschedule(delay) }
end