Skip to content

Commit f1669c8

Browse files
authored
Add backpressure aware async sequence (#1687)
Motivation: Swift doesn't have a general purpose backpressure aware async sequence yet. However, one has been pitched in SE-0406. While we can't use it yet, we can vendor it in. Modifications: - Vendor in the code from SE-0406 with some minor modifications, such as changing the name and making it internal Result: We have a backpressure aware async sequence.
1 parent fdf0a81 commit f1669c8

File tree

5 files changed

+3069
-1
lines changed

5 files changed

+3069
-1
lines changed

NOTICES.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ It also uses derivations of SwiftNIO's lock 'NIOLock.swift' and locked value box
2828
* https://github.com/apple/swift-nio/blob/main/LICENSE.txt
2929
* HOMEPAGE:
3030
* https://github.com/apple/swift-nio
31+
32+
---
33+
34+
This product contains a derivation of the backpressure aware async stream from
35+
the Swift project.
36+
37+
* LICENSE (Apache License 2.0):
38+
* https://github.com/apple/swift/blob/main/LICENSE.txt
39+
* HOMEPAGE:
40+
* https://github.com/apple/swift

Package.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ extension Target {
157157

158158
static let grpcCore: Target = .target(
159159
name: "GRPCCore",
160-
dependencies: [],
160+
dependencies: [
161+
.dequeModule
162+
],
161163
path: "Sources/GRPCCore"
162164
)
163165

@@ -221,6 +223,7 @@ extension Target {
221223
name: "GRPCCoreTests",
222224
dependencies: [
223225
.grpcCore,
226+
.dequeModule,
224227
]
225228
)
226229

0 commit comments

Comments
 (0)