RunLoopExecutor
public final class RunLoopExecutor : ExecutorProtocol
-
The type of errors this executor may return from
trySubmit(_:)
.It only defines one error case, for the executor being at capacity.
See moreDeclaration
Swift
public enum Failure : Error
-
Declaration
Swift
public let label: String
-
Declaration
Swift
public let capacity: Int
-
Declaration
Swift
public init( label: String? = nil, runLoop: CFRunLoop, mode: CFRunLoopMode = COMMON_MODES, capacity: Int = .max )
-
Declaration
Swift
public func trySubmit<F>(_ future: F) -> Result<Void, Failure> where F : FutureProtocol, F.Output == Void
-
Declaration
Swift
public static var current: RunLoopExecutor { get }
-
Declaration
Swift
public static let main: RunLoopExecutor