Skip to content

Commit

Permalink
Xcode 16.0b6 fixes (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed authored Aug 22, 2024
1 parent 6c2239a commit 769eb06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Package@swift-6.0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ let package = Package(
name: "AsyncQueue",
dependencies: [],
swiftSettings: [
.swiftLanguageVersion(.v6),
.swiftLanguageMode(.v6),
]),
.testTarget(
name: "AsyncQueueTests",
dependencies: ["AsyncQueue"],
swiftSettings: [
.swiftLanguageVersion(.v6),
.swiftLanguageMode(.v6),
]),
]
)
2 changes: 1 addition & 1 deletion Sources/AsyncQueue/MainActorQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public final class MainActorQueue: Sendable {
let (taskStream, taskStreamContinuation) = AsyncStream<@Sendable @MainActor () async -> Void>.makeStream()
self.taskStreamContinuation = taskStreamContinuation

Task.detached { @MainActor in
Task { @MainActor in
for await task in taskStream {
await MainActor.shared.suspendUntilStarted(task)
}
Expand Down

0 comments on commit 769eb06

Please sign in to comment.