One Logo Pool Ball
Foundation · IOS API REFERENCE

OperationQueue.SchedulerTimeType

struct · iOS 13.0+ · SDK 27.1

struct SchedulerTimeType

The scheduler time type used by the operation queue.

Members (5)

get · iOS 13.0+

date

TypeScript
get date(): globalThis.Date
Swift declaration
var date: Date

The date represented by this type.

set · iOS 13.0+

date

TypeScript
set date(value: globalThis.Date)
Swift declaration
var date: Date

The date represented by this type.

method · iOS 13.0+

advanced

TypeScript
advanced(n: OperationQueue_SchedulerTimeType_Stride): OperationQueue_SchedulerTimeType
Swift declaration
func advanced(by n: OperationQueue.SchedulerTimeType.Stride) -> OperationQueue.SchedulerTimeType

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

method · iOS 13.0+

distance

TypeScript
distance(other: OperationQueue_SchedulerTimeType): OperationQueue_SchedulerTimeType_Stride
Swift declaration
func distance(to other: OperationQueue.SchedulerTimeType) -> OperationQueue.SchedulerTimeType.Stride

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

init · iOS 13.0+

init

TypeScript
static init(date: globalThis.Date): OperationQueue_SchedulerTimeType
Swift declaration
init(_ date: Date)

Initializes a operation queue scheduler time with the given date. - Parameter date: The date to represent.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →