@@ -113,15 +113,15 @@ public protocol SerialExecutor: Executor {
113113/// requirements.
114114///
115115/// By setting a task executor preference, either with a
116- /// ``_withTaskExecutorPreference (_:operation:)``, creating a task with a preference
117- /// (`Task(_executorPreference :)`, or `group.addTask(executorPreference:)`), the task and all of its child
116+ /// ``withTaskExecutorPreference (_:operation:)``, creating a task with a preference
117+ /// (`Task(executorPreference :)`, or `group.addTask(executorPreference:)`), the task and all of its child
118118/// tasks (unless a new preference is set) will be preferring to execute on
119119/// the provided task executor.
120120///
121121/// Unstructured tasks do not inherit the task executor.
122122@_unavailableInEmbedded
123123@available ( SwiftStdlib 9999 , * )
124- public protocol _TaskExecutor : Executor {
124+ public protocol TaskExecutor : Executor {
125125 // This requirement is repeated here as a non-override so that we
126126 // get a redundant witness-table entry for it. This allows us to
127127 // avoid drilling down to the base conformance just for the basic
@@ -153,7 +153,7 @@ public protocol _TaskExecutor: Executor {
153153
154154@_unavailableInEmbedded
155155@available ( SwiftStdlib 9999 , * )
156- extension _TaskExecutor {
156+ extension TaskExecutor {
157157 public func asUnownedTaskExecutor( ) -> UnownedTaskExecutor {
158158 UnownedTaskExecutor ( ordinary: self )
159159 }
@@ -293,7 +293,7 @@ public struct UnownedTaskExecutor: Sendable {
293293 }
294294
295295 @inlinable
296- public init < E: _TaskExecutor > ( ordinary executor: __shared E) {
296+ public init < E: TaskExecutor > ( ordinary executor: __shared E) {
297297 #if $BuiltinBuildTaskExecutor
298298 self . executor = Builtin . buildOrdinaryTaskExecutorRef ( executor)
299299 #else
@@ -375,7 +375,7 @@ internal func _task_serialExecutor_getExecutorRef<E>(_ executor: E) -> Builtin.E
375375@_unavailableInEmbedded
376376@available ( SwiftStdlib 9999 , * )
377377@_silgen_name ( " _task_executor_getTaskExecutorRef " )
378- internal func _task_executor_getTaskExecutorRef( _ taskExecutor: any _TaskExecutor ) -> Builtin . Executor {
378+ internal func _task_executor_getTaskExecutorRef( _ taskExecutor: any TaskExecutor ) -> Builtin . Executor {
379379 return taskExecutor. asUnownedTaskExecutor ( ) . executor
380380}
381381
@@ -398,7 +398,7 @@ where E: SerialExecutor {
398398@_unavailableInEmbedded
399399@available ( SwiftStdlib 9999 , * )
400400@_silgen_name ( " _swift_task_enqueueOnTaskExecutor " )
401- internal func _enqueueOnTaskExecutor< E> ( job unownedJob: UnownedJob , executor: E ) where E: _TaskExecutor {
401+ internal func _enqueueOnTaskExecutor< E> ( job unownedJob: UnownedJob , executor: E ) where E: TaskExecutor {
402402 #if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
403403 executor. enqueue ( ExecutorJob ( context: unownedJob. _context) )
404404 #else // SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
0 commit comments