Skip to content

Commit 1fafebc

Browse files
authored
Merge pull request #80006 from DougGregor/concurrency-if-task-to-thread
[Concurrency] Remove unnecessary #ifs that break task-to-thread model
2 parents 42cbf86 + a1132ca commit 1fafebc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

stdlib/public/Concurrency/Task.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,8 +1539,6 @@ func _taskCreateNullaryContinuationJob(priority: Int, continuation: Builtin.RawU
15391539
@_silgen_name("swift_task_isCurrentExecutor")
15401540
func _taskIsCurrentExecutor(_ executor: Builtin.Executor) -> Bool
15411541

1542-
#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY && !SWIFT_CONCURRENCY_EMBEDDED
1543-
15441542
@available(SwiftStdlib 6.2, *)
15451543
@_silgen_name("swift_task_isCurrentExecutorWithFlags")
15461544
@usableFromInline
@@ -1555,7 +1553,6 @@ extension GlobalActor {
15551553
return unsafe _taskIsCurrentExecutor(executor: executor.executor, flags: 0)
15561554
}
15571555
}
1558-
#endif
15591556

15601557
@available(SwiftStdlib 5.1, *)
15611558
@usableFromInline

0 commit comments

Comments
 (0)