Required Instance Propertyswift-nio 2.81.0NIOCore

executor

Returns a SerialExecutor corresponding to this EventLoop.

EventLoop.swift:332
iOS
17.0+
macOS
14.0+
tvOS
17.0+
watchOS
10.0+
var executor: any SerialExecutor { get }

This executor can be used to isolate an actor to a given EventLoop. Implementers are encouraged to customise this implementation by conforming their EventLoop to NIOSerialEventLoopExecutor which will provide an optimised implementation of this method, and will conform their type to SerialExecutor. The default implementation provides suboptimal performance.