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
Swift Blogdebounce
andthrottle
, but also algorithms about order likecombineLatest
andmerge
. Operations that work with multiple inputs (likezip
does onSequence
) 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.
GitHub: swift-async-algorithms
Swift Blog: Introducing Swift Async Algorithms