Commit 61cc2d1
authored
Avoid using vendored lock in BroadcastAsyncSequence (#2108)
Motivation:
ManagedBuffer is explicitly not 'Sendable' on Swift nightly builds. As a
result, our Lock type stops being 'Sendable'. This is only used by the
'BroadcastAsyncSequence'.
Modifications:
- Modify 'BroadcastAsyncSequence' to use 'Mutex'. One downside to this
approach is that when a subscribe wants to consume an element and
there's no element available, the lock must be released and then
re-acquired once a continuation has been created.
- Remove our lock, and update NOTICES.txt to reflect the fact we no
longer use a copy of NIOs lock.
Result:
- Less code
- CI passes1 parent 07e38e9 commit 61cc2d1
File tree
3 files changed
+40
-333
lines changed- Sources/GRPCCore
- Internal/Concurrency Primitives
- Streaming/Internal
3 files changed
+40
-333
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 20 | | |
35 | 21 | | |
36 | 22 | | |
| |||
Lines changed: 0 additions & 291 deletions
This file was deleted.
0 commit comments