We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 814f3c5 commit 86d13fbCopy full SHA for 86d13fb
Tests/SKCoreTests/TaskSchedulerTests.swift
@@ -195,7 +195,6 @@ final class TaskSchedulerTests: XCTestCase {
195
}
196
)
197
198
-
199
200
201
// MARK: - Test helpers
@@ -354,8 +353,9 @@ fileprivate extension TaskScheduler<ClosureTaskDescription> {
354
353
body,
355
dependencies: dependencies
356
+ let queuedTask = await self.schedule(priority: priority, taskDescription)
357
return Task(priority: priority) {
358
- await self.schedule(priority: priority, taskDescription).waitToFinishPropagatingCancellation()
+ await queuedTask.waitToFinishPropagatingCancellation()
359
360
361
0 commit comments