Skip to content

Commit 79f746e

Browse files
committed
[Concurrency] Don't use ExecutorJob for task-to-thread model.
Task-to-thread model doesn't have `ExecutorJob`, so we can't use it; however, we probably also don't need `_swift_createJobForTestingOnly` there so just `#if` it out in that case. rdar://155054460
1 parent 36b5090 commit 79f746e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Concurrency/PartialAsyncTask.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,7 @@ public func _abiEnableAwaitContinuation() {
929929
fatalError("never use this function")
930930
}
931931

932+
#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
932933
@available(StdlibDeploymentTarget 6.2, *)
933934
@_silgen_name("_swift_createJobForTestingOnly")
934935
public func _swift_createJobForTestingOnly(
@@ -942,3 +943,4 @@ public func _swift_createJobForTestingOnly(
942943
job.priority = JobPriority(priority)
943944
return job
944945
}
946+
#endif

0 commit comments

Comments
 (0)