Skip to content

Commit b9d5a66

Browse files
committed
Fix issue in AsyncQueue that didn’t respect the requested task priority
1 parent 7670fd4 commit b9d5a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SKSupport/AsyncQueue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public final class AsyncQueue<TaskMetadata: DependencyTracker>: Sendable {
144144
let dependencies: [PendingTask] = tasks.filter { $0.metadata.isDependency(of: metadata) }
145145

146146
// Schedule the task.
147-
let task = Task { [pendingTasks] in
147+
let task = Task(priority: priority) { [pendingTasks] in
148148
// IMPORTANT: The only throwing call in here must be the call to
149149
// operation. Otherwise the assumption that the task will never throw
150150
// if `operation` does not throw, which we are making in `async` does

0 commit comments

Comments
 (0)