Supporting Types
-
Declaration
Swift
public struct Context
-
Declaration
Swift
public enum Poll<T>
-
Declaration
Swift
public protocol WakerProtocol : AnyObject
-
Declaration
Swift
public final class AnyWaker : WakerProtocol
-
A protocol indicating that an activity or action may be canceled.
Calling
See morecancel()
frees up any allocated resources. It also stops side effects such as timers, network access, or disk I/O.Declaration
Swift
public protocol Cancellable
-
A type-erasing cancellable object that executes a provided closure when canceled or deallocated.
See moreAnyCancellable
is thread-safe; concurrent invocations tocancel()
are permitted and it is guaranteed that the closure is only ever invoked once. There is no guarantee however on which thread the closure will be called.Declaration
Swift
public final class AnyCancellable : Cancellable
-
Declaration
Swift
public enum Either<A, B>
-
Declaration
Swift
public protocol EitherConvertible