enqueue(_:)
This declaration is deprecated: Implement 'enqueue(_: consuming ExecutorJob)' instead
func enqueue(_ job: consuming Job)
This declaration is deprecated: Implement 'enqueue(_: consuming ExecutorJob)' instead
func enqueue(_ job: consuming Job)
import _Concurrency
protocol SerialExecutor : Executor
A service that executes jobs.
@frozen struct Job
Deprecated equivalent of ExecutorJob
.
func asUnownedSerialExecutor() -> UnownedSerialExecutor
Convert this executor value to the optimized form of borrowed executor references.
func checkIsolated()
Last resort “fallback” isolation check, called when the concurrency runtime is comparing executors e.g. during assumeIsolated()
and is unable to prove serial equivalence between the expected (this object), and the current executor.
func enqueue(_ job: 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 other
executor represent the same serial, exclusive, isolation context.
func enqueue(_ job: UnownedJob)
import NIOCore
The core abstractions that make up SwiftNIO.
func enqueue(_ job: consuming ExecutorJob)