One Logo Pool Ball
Dispatch · IOS API REFERENCE

DispatchQueue.SchedulerTimeType

struct · iOS 13.0+ · SDK 27.1

struct SchedulerTimeType

The scheduler time type used by the dispatch queue.

Members (5)

get · iOS 13.0+

dispatchTime

TypeScript
get dispatchTime(): DispatchTime
Swift declaration
var dispatchTime: DispatchTime

The dispatch time represented by this type.

set · iOS 13.0+

dispatchTime

TypeScript
set dispatchTime(value: DispatchTime)
Swift declaration
var dispatchTime: DispatchTime

The dispatch time represented by this type.

method · iOS 13.0+

advanced

TypeScript
advanced(n: DispatchQueue_SchedulerTimeType_Stride): DispatchQueue_SchedulerTimeType
Swift declaration
func advanced(by n: DispatchQueue.SchedulerTimeType.Stride) -> DispatchQueue.SchedulerTimeType

Returns a dispatch queue scheduler time calculated by advancing this instance’s time by the given interval. - Parameter n: A time interval to advance. - Returns: A dispatch queue time advanced by the given interval from this instance’s time.

method · iOS 13.0+

distance

TypeScript
distance(other: DispatchQueue_SchedulerTimeType): DispatchQueue_SchedulerTimeType_Stride
Swift declaration
func distance(to other: DispatchQueue.SchedulerTimeType) -> DispatchQueue.SchedulerTimeType.Stride

Returns the distance to another dispatch queue time. - Parameter other: Another dispatch queue time. - Returns: The time interval between this time and the provided time.

init · iOS 13.0+

init

TypeScript
static init(time: DispatchTime): DispatchQueue_SchedulerTimeType
Swift declaration
init(_ time: DispatchTime)

Creates a dispatch queue time type instance. - Parameter time: The dispatch time to represent.

Skipped declarations

No declarations were skipped in this snapshot.

All Dispatch types →