CancellationToken
public final class CancellationToken : Codable, Equatable
Undocumented
-
Undocumented
Declaration
Swift
public internal(set) var isCanceled: Bool { get }
-
Undocumented
Declaration
Swift
public internal(set) var isStarted: Bool { get }
-
Undocumented
Declaration
Swift
public internal(set) var timeout: TimeInterval? { get }
-
Undocumented
Declaration
Swift
public func cancel()
-
Undocumented
Declaration
Swift
public init(timeout: TimeInterval? = nil)
-
Declaration
Swift
public static func == (lhs: CancellationToken, rhs: CancellationToken) -> Bool
-
Start the cancellation token countdown. If the countdown is already running, this return immediately.
Declaration
Swift
public func start()