public protocol EventLoopGroup : AnyObject
Provides an endless stream of
EventLoops to use.
Shuts down the eventloop gracefully. This function is clearly an outlier in that it uses a completion callback instead of an EventLoopFuture. The reason for that is that NIO’s EventLoopFutures will call back on an event loop. The virtue of this function is to shut the event loop down. To work around that we call back on a DispatchQueue instead.
func shutdownGracefully(queue: DispatchQueue, _ callback: @escaping (Error?) -> Void)