Instance Method (Default implementation)swift-nio 2.81.0NIOCore
checkIsolated
EventLoop+SerialExecutor.swift:54- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- watchOS
- 11.0+
func checkIsolated()
func checkIsolated()
s7NIOCore26NIOSerialEventLoopExecutorPAAE13checkIsolatedyyF
What are these?7IIT2
import NIOCore
The core abstractions that make up SwiftNIO.
protocol NIOSerialEventLoopExecutor : EventLoop, SerialExecutor
A helper protocol that can be mixed in to a NIO EventLoop
to provide an automatic conformance to SerialExecutor
.
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.
var executor: any SerialExecutor { get }
func asUnownedSerialExecutor() -> UnownedSerialExecutor
func enqueue(_ job: consuming ExecutorJob)
func isSameExclusiveExecutionContext(other: Self) -> Bool