module Concurrent::Promises::FactoryMethods

def schedule_on(default_executor, intended_time, *args, &task)

Returns:
  • (Event) -
  • (Future) -

Overloads:
  • schedule_on(default_executor, intended_time)
  • schedule_on(default_executor, intended_time, *args, &task)

Other tags:
    Yield: - to the task.

Parameters:
  • intended_time (Numeric, Time) -- `Numeric` means to run in `intended_time` seconds.
def schedule_on(default_executor, intended_time, *args, &task)
  event = ScheduledPromise.new(default_executor, intended_time).event
  task ? event.chain(*args, &task) : event
end