Deadline
public struct Deadline
Representation of a deadline.
To create a Deadline
you can either use the static values .immediately
and .never
or call fromNow()
from a previously created Duration
.
Example:
let deadline = 30.seconds.fromNow()
-
Raw value representing the deadline.
Declaration
Swift
public let value: Int64
-
Deadline representing now.
Declaration
Swift
public static func now() -> Deadline
-
Special value to be used if the operation needs to be performed without blocking.
Declaration
Swift
public static var immediately: Deadline
-
Special value to be used to allow the operation to block forever if needed.
Declaration
Swift
public static var never: Deadline