Skip to content

Commit 65e8957

Browse files
committed
Add AsyncBackpressuredStream proposal and implementation
# Motivation The pitch to add external backpressure support to the standard libraries `AsyncStream` got returned for revision since there are larger open questions around `AsyncSequence`. However, having external backpressure in a source asynchronous sequence is becoming more and more important. # Modification This PR adds a modified proposal and implementation that brings the Swift Evolution proposal over to Swift Async Algorithms.
1 parent da4e36f commit 65e8957

File tree

9 files changed

+3943
-0
lines changed

9 files changed

+3943
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Evolution/0016-backpressured-stream.md

Lines changed: 731 additions & 0 deletions
Large diffs are not rendered by default.

Sources/AsyncAlgorithms/BackPressuredStream/AsyncBackPressuredStream.swift

Lines changed: 425 additions & 0 deletions
Large diffs are not rendered by default.

Sources/AsyncAlgorithms/BackpressuredStream/AsyncBackPressuredStream+Internal.swift

Lines changed: 1192 additions & 0 deletions
Large diffs are not rendered by default.

Sources/AsyncAlgorithms/BackpressuredStream/AsyncNonThrowingBackPressuredStream.swift

Lines changed: 429 additions & 0 deletions
Large diffs are not rendered by default.

Tests/AsyncAlgorithmsTests/BackpressuredStream/BackPressuredStreamTests.swift

Lines changed: 1166 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)