diff --git a/Package.swift b/Package.swift index 185d71f..7adff30 100644 --- a/Package.swift +++ b/Package.swift @@ -19,7 +19,10 @@ let package = Package( targets: [ .target( name: "AsyncQueue", - dependencies: []), + dependencies: [], + swiftSettings: [ + .enableUpcomingFeature("StrictConcurrency") + ]), .testTarget( name: "AsyncQueueTests", dependencies: ["AsyncQueue"], diff --git a/README.md b/README.md index ebceea3..612ea57 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,6 @@ func testFIFOQueueOrdering() async { } } - nonisolated func flushQueue() async { await queue.enqueueAndWait { } } @@ -110,7 +109,6 @@ func testActorQueueOrdering() async { } } - nonisolated func flushQueue() async { await queue.enqueueAndWait { _ in } } @@ -148,7 +146,6 @@ func testMainActorQueueOrdering() async { } } - nonisolated func flushQueue() async { await MainActorQueue.shared.enqueueAndWait { } }