One Logo Pool Ball
Combine · IOS API REFERENCE

ImmediateScheduler

struct · iOS 13.0+ · SDK 27.1

struct ImmediateScheduler

A scheduler for performing synchronous actions. You can only use this scheduler for immediate actions. If you attempt to schedule actions after a specific date, this scheduler ignores the date and performs them immediately.

Members (6)

get · iOS 13.0+

minimumTolerance

TypeScript
get minimumTolerance(): ImmediateScheduler_SchedulerTimeType_Stride
Swift declaration
var minimumTolerance: ImmediateScheduler.SchedulerTimeType.Stride { get }

The minimum tolerance allowed by the immediate scheduler.

get · iOS 13.0+

now

TypeScript
get now(): ImmediateScheduler_SchedulerTimeType
Swift declaration
var now: ImmediateScheduler.SchedulerTimeType { get }

The immediate scheduler’s definition of the current moment in time.

get · iOS 13.0+

shared

TypeScript
static get shared(): ImmediateScheduler
Swift declaration
static let shared: ImmediateScheduler

The shared instance of the immediate scheduler. You cannot create instances of the immediate scheduler yourself. Use only the shared instance.

method · iOS 13.0+

schedule

TypeScript
scheduleAfterIntervalToleranceOptions(date: ImmediateScheduler_SchedulerTimeType, interval: ImmediateScheduler_SchedulerTimeType_Stride, tolerance: ImmediateScheduler_SchedulerTimeType_Stride, options: (never) | null, action: (() => void)): SDKHandle
Swift declaration
@discardableResult func schedule(after date: ImmediateScheduler.SchedulerTimeType, interval: ImmediateScheduler.SchedulerTimeType.Stride, tolerance: ImmediateScheduler.SchedulerTimeType.Stride, options: ImmediateScheduler.SchedulerOptions?, _ action: @escaping () -> Void) -> any Cancellable

Performs the action at some time after the specified date, at the specified frequency, optionally taking into account tolerance if possible. The immediate scheduler ignores `date` and performs the action immediately.

method · iOS 13.0+

schedule

TypeScript
scheduleAfterToleranceOptions(date: ImmediateScheduler_SchedulerTimeType, tolerance: ImmediateScheduler_SchedulerTimeType_Stride, options: (never) | null, action: (() => void)): void
Swift declaration
func schedule(after date: ImmediateScheduler.SchedulerTimeType, tolerance: ImmediateScheduler.SchedulerTimeType.Stride, options: ImmediateScheduler.SchedulerOptions?, _ action: @escaping () -> Void)

Performs the action at some time after the specified date. The immediate scheduler ignores `date` and performs the action immediately.

method · iOS 13.0+

schedule

TypeScript
scheduleOptions(options: (never) | null, action: (() => void)): void
Swift declaration
func schedule(options: ImmediateScheduler.SchedulerOptions?, _ action: @escaping () -> Void)

Performs the action at the next possible opportunity.

Skipped declarations

No declarations were skipped in this snapshot.

All Combine types →