Instance Methodswift-nio 2.72.0NIOPosix
any
Returns the current EventLoop
if we are on an EventLoop
of this MultiThreadedEventLoopGroup
instance.
func any() -> EventLoop
Returns
The EventLoop
.
Other members in extension
Type members
init(numberOfThreads: Int
) Creates a
MultiThreadedEventLoopGroup
instance which usesnumberOfThreads
.init(numberOfThreads: Int, metricsDelegate: NIOEventLoopMetricsDelegate
) Creates a
MultiThreadedEventLoopGroup
instance which usesnumberOfThreads
.static var currentEventLoop: EventLoop?
Returns the
EventLoop
for the calling thread.static var singleton: MultiThreadedEventLoopGroup
A globally shared, singleton
MultiThreadedEventLoopGroup
.static func withCurrentThreadAsEventLoop(@escaping (EventLoop) -> Void
) Convert the calling thread into an
EventLoop
.
Show implementation details (1)
Hide implementation details
static func _makePerpetualGroup(threadNamePrefix: String, numberOfThreads: Int
) -> MultiThreadedEventLoopGroup Create a
MultiThreadedEventLoopGroup
that cannot be shut down and must not bedeinit
ed.
Instance members
var description: String
func makeIterator(
) -> EventLoopIterator Returns an
EventLoopIterator
over theEventLoop
s in thisMultiThreadedEventLoopGroup
.func next(
) -> EventLoop Returns the next
EventLoop
from thisMultiThreadedEventLoopGroup
.func shutdownGracefully(queue: DispatchQueue, @escaping (Error?) -> Void
) Shut this
MultiThreadedEventLoopGroup
down which causes theEventLoop
s and their associated threads to be shut down and release their resources.