distantFuture
TypeScriptget distantFuture(): DispatchTimeSwift declarationstatic let distantFuture: DispatchTimestruct · SDK 27.1
struct DispatchTimeget distantFuture(): DispatchTimeSwift declarationstatic let distantFuture: DispatchTimeinit(uptimeNanoseconds: number): DispatchTimeSwift declarationinit(uptimeNanoseconds: UInt64)Creates a `DispatchTime` relative to the system clock that ticks since boot. - Parameters: - uptimeNanoseconds: The number of nanoseconds since boot, excluding time the system spent asleep - Returns: A new `DispatchTime` - Discussion: This clock is the same as the value returned by `mach_absolute_time` when converted into nanoseconds. On some platforms, the nanosecond value is rounded up to a multiple of the Mach timebase, using the conversion factors returned by `mach_timebase_info()`. The nanosecond equivalent of the rounded result can be obtained by reading the `uptimeNanoseconds` property. Note that `DispatchTime(uptimeNanoseconds: 0)` is equivalent to `DispatchTime.now()`, that is, its value represents the number of nanoseconds since boot (excluding system sleep time), not zero nanoseconds since boot.
getUptimeNanoseconds($self: DispatchTime): numberSwift declarationvar uptimeNanoseconds: UInt64 { get }now(): DispatchTimeSwift declarationstatic func now() -> DispatchTimeadvanced($self: DispatchTime, n: DispatchTimeInterval): DispatchTimeSwift declarationfunc advanced(by n: DispatchTimeInterval) -> DispatchTimedistance($self: DispatchTime, other: DispatchTime): DispatchTimeIntervalSwift declarationfunc distance(to other: DispatchTime) -> DispatchTimeIntervalgetRawValue($self: DispatchTime): numberSwift declarationlet rawValue: dispatch_time_t1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
DispatchTime
The iOS SDK compiler rejected this binding: initializer 'init(uptimeNanoseconds:)' has different argument labels from those required by protocol 'RawRepresentable' ('init(rawValue:)')