next
Returns the next EventLoop from this MultiThreadedEventLoopGroup.
func next() -> any EventLoop Returns
The next EventLoop to use.
MultiThreadedEventLoopGroup uses round robin across all its EventLoops to select the next one.
Returns the next EventLoop from this MultiThreadedEventLoopGroup.
func next() -> any EventLoop s8NIOPosix27MultiThreadedEventLoopGroupC4next7NIOCore0dE0_pyF What are these?8077LThe next EventLoop to use.
MultiThreadedEventLoopGroup uses round robin across all its EventLoops to select the next one.
import NIOPosixfinal class MultiThreadedEventLoopGroupAn EventLoopGroup which will create multiple EventLoops, each tied to its own NIOThread.
protocol EventLoop : EventLoopGroupAn EventLoop processes IO / tasks in an endless loop for Channels until it’s closed.
convenience init(numberOfThreads: Int) Creates a MultiThreadedEventLoopGroup instance which uses numberOfThreads.
convenience init(numberOfThreads: Int, metricsDelegate: any NIOEventLoopMetricsDelegate) Creates a MultiThreadedEventLoopGroup instance which uses numberOfThreads.
static var currentEventLoop: (any EventLoop)? { get }Returns the EventLoop for the calling thread.
static var singleton: MultiThreadedEventLoopGroup { get }A globally shared, singleton MultiThreadedEventLoopGroup.
static func _makePerpetualGroup(threadNamePrefix: String, numberOfThreads: Int) -> MultiThreadedEventLoopGroup Create a MultiThreadedEventLoopGroup that cannot be shut down and must not be deinited.
static func withCurrentThreadAsEventLoop(_ callback: @escaping (any EventLoop) -> Void) Convert the calling thread into an EventLoop.
static func withEventLoopGroup<Result>(numberOfThreads: Int, metricsDelegate: (any NIOEventLoopMetricsDelegate)? = nil, isolation actor: isolated (any Actor)? = #isolation, _ body: (MultiThreadedEventLoopGroup) async throws -> Result) async throws -> Result Start & automatically shut down a new MultiThreadedEventLoopGroup.
var description: String { get }func _preconditionSafeToSyncShutdown(file: StaticString, line: UInt) func any() -> any EventLoop Returns the current EventLoop if we are on an EventLoop of this MultiThreadedEventLoopGroup instance.
func makeIterator() -> EventLoopIterator Returns an EventLoopIterator over the EventLoops in this MultiThreadedEventLoopGroup.
@preconcurrency func shutdownGracefully(queue: DispatchQueue, _ handler: @escaping ((any Error)?) -> Void) Shut this MultiThreadedEventLoopGroup down which causes the EventLoops and their associated threads to be shut down and release their resources.