File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,7 @@ print("call_taskImmediate_taskExecutor()")
462
462
@TaskLocal
463
463
nonisolated ( unsafe) var niceTaskLocalValueYouGotThere: String = " "
464
464
465
+ // FIXME: rdar://155596073 Task executors execution may not always hop as expected
465
466
func call_taskImmediate_taskExecutor( taskExecutor: NaiveQueueExecutor ) async {
466
467
await Task . immediate ( executorPreference: taskExecutor) {
467
468
print ( " Task.immediate(executorPreference:) " )
@@ -560,7 +561,8 @@ func call_taskImmediate_taskExecutor(taskExecutor: NaiveQueueExecutor) async {
560
561
}
561
562
}
562
563
563
- await call_taskImmediate_taskExecutor (
564
- taskExecutor: NaiveQueueExecutor ( queue: DispatchQueue ( label: " my-queue " ) ) )
564
+ // FIXME: rdar://155596073 task executors can be somewhat racy it seems and not always hop as we'd want them to
565
+ // await call_taskImmediate_taskExecutor(
566
+ // taskExecutor: NaiveQueueExecutor(queue: DispatchQueue(label: "my-queue")))
565
567
566
- print ( " DONE! " ) // CHECK: DONE!
568
+ print ( " DONE! " ) // CHECK: DONE!
You can’t perform that action at this time.
0 commit comments