iOS reference / Dispatch / DispatchQueue.SchedulerTimeType.StrideDispatch · IOS API REFERENCE
DispatchQueue.SchedulerTimeType.Stride struct · iOS 13.0+ · SDK 27.1
struct StrideA type that represents the distance between two values.
Members (12) static · iOS 13.0+ nanoseconds TypeScript static nanoseconds(ns: number): DispatchQueue_SchedulerTimeType_StrideSwift declaration static func nanoseconds(_ ns: Int) -> DispatchQueue.SchedulerTimeType.StrideConverts the specified number of nanoseconds into an instance of this scheduler time type.
init · iOS 13.0+ init TypeScript static initFloatLiteral(value: number): DispatchQueue_SchedulerTimeType_StrideSwift declaration init(floatLiteral value: Double)Creates a dispatch queue time interval from a floating-point seconds value.
- Parameter value: The number of seconds, as a `Double`.
static · iOS 13.0+ microseconds TypeScript static microseconds(us: number): DispatchQueue_SchedulerTimeType_StrideSwift declaration static func microseconds(_ us: Int) -> DispatchQueue.SchedulerTimeType.StrideConverts the specified number of microseconds into an instance of this scheduler time type.
static · iOS 13.0+ milliseconds TypeScript static milliseconds(ms: number): DispatchQueue_SchedulerTimeType_StrideSwift declaration static func milliseconds(_ ms: Int) -> DispatchQueue.SchedulerTimeType.StrideConverts the specified number of milliseconds into an instance of this scheduler time type.
get · iOS 13.0+ timeInterval TypeScript get timeInterval(): DispatchTimeIntervalSwift declaration var timeInterval: DispatchTimeInterval { get }A `DispatchTimeInterval` created with the value of this type in nanoseconds.
init · iOS 13.0+ init TypeScript static initIntegerLiteral(value: number): DispatchQueue_SchedulerTimeType_StrideSwift declaration init(integerLiteral value: Int)Creates a dispatch queue time interval from an integer seconds value.
- Parameter value: The number of seconds, as an `Int`.
init · iOS 13.0+ init TypeScript static initExactly(source: number): (DispatchQueue_SchedulerTimeType_Stride) | nullSwift declaration init?<T>(exactly source: T) where T : BinaryIntegerCreates a dispatch queue time interval from a binary integer type representing a number of seconds.
If `source` cannot be exactly represented, the resulting time interval is `nil`.
- Parameter source: A binary integer representing a time interval.
static · iOS 13.0+ seconds TypeScript static seconds(s: number): DispatchQueue_SchedulerTimeType_StrideSwift declaration static func seconds(_ s: Double) -> DispatchQueue.SchedulerTimeType.StrideConverts the specified number of seconds, as a floating-point value, into an instance of this scheduler time type.
static · iOS 13.0+ seconds TypeScript static seconds17141(s: number): DispatchQueue_SchedulerTimeType_StrideSwift declaration static func seconds(_ s: Int) -> DispatchQueue.SchedulerTimeType.StrideConverts the specified number of seconds into an instance of this scheduler time type.
get · iOS 13.0+ magnitude TypeScript get magnitude(): numberSwift declaration var magnitude: Int { get set }The value of this time interval in nanoseconds.
set · iOS 13.0+ magnitude TypeScript set magnitude(value: number)Swift declaration var magnitude: Int { get set }The value of this time interval in nanoseconds.
init · iOS 13.0+ init TypeScript static init(timeInterval: DispatchTimeInterval): DispatchQueue_SchedulerTimeType_StrideSwift declaration init(_ timeInterval: DispatchTimeInterval)Creates a dispatch queue time interval from the given dispatch time interval.
- Parameter timeInterval: A dispatch time interval.
Skipped declarations No declarations were skipped in this snapshot.
All Dispatch types →