class Concurrent::ScheduledTask

def self.execute(delay, opts = {}, &task)

Raises:
  • (ArgumentError) - if no block is given

Returns:
  • (ScheduledTask) - the newly created `ScheduledTask` in the `:pending` state

Parameters:
  • delay (Float) -- the number of seconds to wait for before executing the task
def self.execute(delay, opts = {}, &task)
  new(delay, opts, &task).execute
end