Extended Protocol
Collection
extension Collection
Topics
Instance Methods
func flatten<Value>(on: any EventLoop) -> EventLoopFuture<[Value]>Converts a collection ofEventLoopFutures to anEventLoopFuturethat wraps an array with the future values.func sequencedFlatMapEach(on:_:)An overload ofsequencedFlatMapEach(on:_:)which returns aVoidfuture instead of[Void]when the result type of the transform closure isVoid.func sequencedFlatMapEachCompact<Result>(on: any EventLoop, (Self.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]>Variant ofsequencedFlatMapEach(on:_:)which providescompactMap()semantics by allowing result values to benil. Such results are not included in the output array.