TrampolineScheduler
public final class TrampolineScheduler
extension TrampolineScheduler: Scheduler
A scheduler for performing trampolined actions.
This scheduler will queue scheduled actions immediately on the current thread performing them in a first in, first out order.
You can only use this scheduler for immediate actions. If you attempt to schedule actions after a specific date, the scheduler produces a fatal error.
-
Declaration
Swift
public typealias SchedulerTimeType = ImmediateScheduler.SchedulerTimeType
-
Declaration
Swift
public typealias SchedulerOptions = ImmediateScheduler.SchedulerOptions
-
Declaration
Swift
public var now: TrampolineScheduler.SchedulerTimeType { get }
-
Declaration
Swift
public var minimumTolerance: TrampolineScheduler.SchedulerTimeType.Stride { get }
-
Declaration
Swift
public func schedule(options: SchedulerOptions?, _ action: @escaping () -> Void)
-
Declaration
Swift
public func schedule(after date: SchedulerTimeType, tolerance: SchedulerTimeType.Stride, options: SchedulerOptions?, _ action: @escaping () -> Void)
-
Declaration
Swift
public func schedule(after date: SchedulerTimeType, interval: SchedulerTimeType.Stride, tolerance: SchedulerTimeType.Stride, options: SchedulerOptions?, _ action: @escaping () -> Void) -> Cancellable