A service that executes jobs.
protocol SerialExecutor : Executor
) -> UnownedSerialExecutor
Convert this executor value to the optimized form of borrowed executor references.
func enqueue(consuming ExecutorJob
func isSameExclusiveExecutionContext(other: Self
) -> Bool
If this executor has complex equality semantics, and the runtime needs to compare two executors, it will first attempt the usual pointer-based equality check, and if it fails it will compare the types of both executors, if they are the same, it will finally invoke this method, in an attempt to let the executor itself decide if this and the
otherexecutor represent the same serial, exclusive, isolation context.
func enqueue(consuming Job
Citizens in _Concurrency
func assertIsolated(() -> String, file: StaticString, line: UInt
Performs an executor check in debug builds.
func preconditionIsolated(() -> String, file: StaticString, line: UInt
Unconditionally if the current task is executing on the expected serial executor, and if not crash the program offering information about the executor mismatch.
Extension in NIOCore
A helper protocol that can be mixed in to a NIO
EventLoopto provide an automatic conformance to