mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-26 04:37:48 +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))
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import XCTest
|
||||
@preconcurrency import XCTest
|
||||
import AsyncAlgorithms
|
||||
|
||||
final class TestBuffer: XCTestCase {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import XCTest
|
||||
@preconcurrency import XCTest
|
||||
import AsyncAlgorithms
|
||||
|
||||
final class TestRemoveDuplicates: XCTestCase {
|
||||
@@ -64,7 +64,7 @@ final class TestRemoveDuplicates: XCTestCase {
|
||||
throw NSError(domain: NSCocoaErrorDomain, code: -1, userInfo: nil)
|
||||
}
|
||||
return $0
|
||||
} as (Int) throws -> Int)
|
||||
} as @Sendable (Int) throws -> Int)
|
||||
|
||||
do {
|
||||
for try await item in throwingSequence.removeDuplicates() {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import XCTest
|
||||
@preconcurrency import XCTest
|
||||
import AsyncAlgorithms
|
||||
|
||||
final class TestZip2: XCTestCase {
|
||||
|
||||
Reference in new issue
Block a user