Swift team announces Swift Async Algorithms

Swift team presented new Swift package for algorithms created on top of AsyncSequence.

This packages provides cross-platform open source time-based algorithms to be applied in various applications.

AsyncAlgorithms is a package for algorithms that work with values over time. That includes those primarily about time, like debounce and throttle, but also algorithms about order like combineLatest and merge. Operations that work with multiple inputs (like zip does on Sequence) can be surprisingly complex to implement, with subtle behaviors and many edge cases to consider. A shared package can get these details correct, with extensive testing and documentation, for the benefit of all Swift apps.

Swift Blog

GitHub: swift-async-algorithms

Swift Blog: Introducing Swift Async Algorithms