EventLoopGroup
extension EventLoopGroup
-
Run closure on every EventLoop in an EventLoopGroup and return results in an array of
EventLoopFuture
s.Declaration
Swift
func map<T>(_ transform: @escaping (EventLoop) -> T) -> [EventLoopFuture<T>]
-
Run closure returning
EventLoopFuture
on every EventLoop in an EventLoopGroup and return results in an array ofEventLoopFuture
s.Declaration
Swift
func flatMap<T>(_ transform: @escaping (EventLoop) -> EventLoopFuture<T>) -> [EventLoopFuture<T>]