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.

Diff for: Evolution/0016-backpressured-stream.md

+731
Large diffs are not rendered by default.

Diff for: Sources/AsyncAlgorithms/BackPressuredStream/AsyncBackPressuredStream.swift

+425
Large diffs are not rendered by default.

Diff for: Sources/AsyncAlgorithms/BackpressuredStream/AsyncBackPressuredStream+Internal.swift

+1,192
Large diffs are not rendered by default.

Diff for: Sources/AsyncAlgorithms/BackpressuredStream/AsyncNonThrowingBackPressuredStream.swift

+429
Large diffs are not rendered by default.

Diff for: Tests/AsyncAlgorithmsTests/BackpressuredStream/BackPressuredStreamTests.swift

+1,166
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)