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)
NoteThe return value of
makeIteratoris currently optional as requiring it would be SemVer major. From NIO 2.0.0 on it will return a non-optional iterator.
func makeIterator() -> EventLoopIterator?