Structure

DispatchQueue.SchedulerTimeType

The scheduler time type used by the dispatch queue.

Declaration

struct SchedulerTimeType, Codable, Hashable

Topics

Creating Scheduler Times

init(DispatchTime)

Creates a dispatch queue time type instance.

Inspecting Scheduler Time Properties

var dispatchTime: DispatchTime

The dispatch time represented by this type.

Comparing Scheduler Times

static func < (DispatchQueue.SchedulerTimeType, DispatchQueue.SchedulerTimeType) -> Bool

Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.

static func <= (DispatchQueue.SchedulerTimeType, DispatchQueue.SchedulerTimeType) -> Bool

Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.

static func == (DispatchQueue.SchedulerTimeType, DispatchQueue.SchedulerTimeType) -> Bool

Returns a Boolean value indicating whether two values are equal.

static func > (DispatchQueue.SchedulerTimeType, DispatchQueue.SchedulerTimeType) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.

static func >= (DispatchQueue.SchedulerTimeType, DispatchQueue.SchedulerTimeType) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.

Instance Properties

Instance Methods

Relationships

From Protocol

See Also

Scheduling Combine Publishers

func schedule(options: DispatchQueue.SchedulerOptions?, () -> Void)

Performs the action at some time after the specified date, using the scheduler’s minimum tolerance.

var minimumTolerance: DispatchQueue.SchedulerTimeType.Stride

The minimum tolerance allowed by the dispatch queue scheduler.

var now: DispatchQueue.SchedulerTimeType

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

struct DispatchQueue.SchedulerOptions

A set of options that affect the operation of the dispatch queue scheduler.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software