EventLoopGroup

extension EventLoopGroup
  • Run closure on every EventLoop in an EventLoopGroup and return results in an array of EventLoopFutures.

    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 of EventLoopFutures.

    Declaration

    Swift

    func flatMap<T>(_ transform: @escaping (EventLoop) -> EventLoopFuture<T>) -> [EventLoopFuture<T>]