apple / apple/swift-async-algorithms

For `Void` element AsyncSequence types it might be nice to have a `waitForAll() async rethrows` similar to TaskGroup

Open
#265 1 comment 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Swift
Stars
3.7k
Forks
226
Avg merge
10d 3h
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

Research direction

The proposed entry point is an AsyncSequence extension constrained to Element == Void; start by locating existing AsyncSequence extensions and related tests in the project. Add the shown waitForAll() behavior, then run the relevant tests or test suite to verify that it waits for all elements and propagates errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.