Skip to content

Extended Protocol

Collection

extension Collection

Topics

Instance Methods

  • flatten(on:)
    Converts a collection of EventLoopFutures to an EventLoopFuture that wraps an array with the future values.
  • sequencedFlatMapEach(on:_:)
    An overload of sequencedFlatMapEach(on:_:) which returns a Void future instead of [Void] when the result type of the transform closure is Void.
  • sequencedFlatMapEachCompact(on:_:)
    Variant of sequencedFlatMapEach(on:_:) which provides compactMap() semantics by allowing result values to be nil. Such results are not included in the output array.