Contents

schedule(after:interval:tolerance:options:_:)

Performs the action at some time after the specified date, at the specified frequency, optionally taking into account tolerance if possible.

Declaration

@discardableResult func schedule(after date: ImmediateScheduler.SchedulerTimeType, interval: ImmediateScheduler.SchedulerTimeType.Stride, tolerance: ImmediateScheduler.SchedulerTimeType.Stride, options: ImmediateScheduler.SchedulerOptions?, _ action: @escaping () -> Void) -> any Cancellable

Discussion

The immediate scheduler ignores date and performs the action immediately.

See Also

Scheduling actions