NIOIsolatedEventLoop

A struct wrapping an EventLoop that ensures all calls to any method on this struct are coming from the event loop.

EventLoopFuture+AssumeIsolated.swift:25
struct NIOIsolatedEventLoop

This type is explicitly not Sendable. It may only be constructed on an event loop, using assumeIsolated, and may not subsequently be passed to other isolation domains.

Using this type relaxes the need to have the closures for execute(_:), EventLoop/submit(_:), scheduleTask(in:_:), and EventLoop/scheduleCallback(in:handler:) to be @Sendable.