preconditionInEventLoop(file:line:)
Asserts that the current thread is the one tied to this EventLoop
. Otherwise, the process will be abnormally terminated as per the semantics of preconditionFailure(_:file:line:)
.
func preconditionInEventLoop(file: StaticString, line: UInt)
This method may never produce false positives or false negatives in conforming implementations. It may never terminate the process when event loop context is actually held, and it may never fail to terminate the process when event loop context is not held.