mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-27 04:44:21 +00:00
Reduce warnings for preconcurrency and non mutated vars (#88)
This commit is contained in:
1 parent
3447a342ac
commit
e87e9ddd02
4 files changed
+5
-5
No files matched your search
@@ -78,7 +78,7 @@ actor AsyncBufferState<Input: Sendable, Output: Sendable> {
|
||||
|
||||
func terminate() {
|
||||
terminationState = .terminal
|
||||
var oldPending = pending
|
||||
let oldPending = pending
|
||||
pending = []
|
||||
for continuation in oldPending {
|
||||
continuation.resume(returning: .success(nil))
|
||||
|
||||
Reference in new issue
Block a user