swift-async-algorithms icon indicating copy to clipboard operation
swift-async-algorithms copied to clipboard

Async Algorithms for Swift

Results 70 swift-async-algorithms issues
Sort by recently updated
recently updated
newest added

I've got a use case where I have an unknown number of `AsyncChannel`s that I want to merge into a single stream of events. It'd be wonderful if `merge(…)` and...

Future

This is a really common need; to create a deadline for given work and throw if that deadline passes.

v1.1

This proposal formalizes rate limiting algorithms for debouncing and throttling. Read the full proposal [here](https://github.com/phausler/swift-async-algorithms/blob/1b7c4e9e63daa27aa7566c61980723d5b279031b/Evolution/NNNN-rate-limits.md)

Starting a Subject implementation exploration for moving values from a non-async context into an async context in sequence.

v1.1

``` swift-async-algorithms/Tests/AsyncAlgorithmsTests/TestBuffer.swift:454: error: -[AsyncAlgorithmsTests.TestBuffer test_bufferingOldest_error] : specification violation got "5" after iteration terminated at tick 7 swift-async-algorithms/Tests/AsyncAlgorithmsTests/TestBuffer.swift:454: error: -[AsyncAlgorithmsTests.TestBuffer test_bufferingOldest_error] : expected failure but got "3" at tick 7 swift-async-algorithms/Tests/AsyncAlgorithmsTests/TestBuffer.swift:454:...

I just downloaded Xcode 14 (non beta), version 14A309, and this project fails to compile.

It does build fails on Xcode 14 RC (14A309) I don't know which channel will be good for reports this issue, so I post it on here. If this is...

If I add `warn-concurrency` and `enable-actor-data-race-check` as `swiftSettings` for `AsyncAlgorithms` target I get some warnings. This is on macOS Ventura (13.0 Beta (22A5331f)) and using Xcode 14.0 beta 5 (14A5294e)....

Unlike similar operator in `Combine` the `throttle`'s `latest` parameter is confusing, as it does not emit any latest, but a **next** element instead. When `latest` parameter is set to `true`...

``` extension AsyncSequence where Element == Void { func waitForAll() async rethrows { for try await _ in self { } } } ```

enhancement
good first issue