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

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

Open phausler opened this issue 2 years ago • 1 comments

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

phausler avatar May 22 '23 18:05 phausler

Hey @phausler I wanted to work on this issue but can you explain to me in more detail what exactly is the problem to fully understand what to do.

EngOmarElsayed avatar Jan 08 '24 07:01 EngOmarElsayed