vapor / async-kit

Sugary extensions for the SwiftNIO library
MIT License
71 stars 25 forks source link

Enable sequencedFlatMapEach() from a plain Collection base #79

Closed gwynne closed 3 years ago

gwynne commented 3 years ago

Adds helpers for writing [1, 2, 3].sequencedFlatMapEach(on: eventLoop) { SomeModel($0).save(on: db) } instead of eventLoop.future([1, 2, 3]).sequencedFlatMapEach { }. More for completeness than anything.

VaporBot commented 3 years ago

These changes are now available in 1.4.0