Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
|Last commit: 7 weeks ago|
You may find interesting
Add "sequenced" variants of flatMapEach() and flatMapEachCompact() - 2020-12-01T14:14:58
This patch was authored and released by @gwynne.
These new variants guarantee two specific behaviors:
The futures returned for each element of the iterated sequence will be executed singularly and strictly in order. Only one will run at a time, and the order in which they run will match that returned by the transformation callback.
If any one of the futures should fail, no other futures will begin execution, even if they were ready to do so.
- Added new tests for the "sequenced" behaviors,
- Made sure the ELG used for the collections+futures tests has multiple threads, otherwise the tests are meaningless.
- Fixed a couple of typos in comments.
- Simplified the implementations of the original
flatMapEachCompact(on:_:)(no functional changes).