@@ -29,12 +29,12 @@ public protocol Executor: AnyObject, Sendable {
2929 #if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
3030 @available ( SwiftStdlib 5 . 9 , * )
3131 @available ( * , deprecated, message: " Implement 'enqueue(_: __owned ExecutorJob)' instead " )
32- func enqueue( _ job: __owned Job)
32+ func enqueue( _ job: consuming Job )
3333 #endif // !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
3434
3535 #if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
3636 @available ( SwiftStdlib 5 . 9 , * )
37- func enqueue( _ job: __owned ExecutorJob)
37+ func enqueue( _ job: consuming ExecutorJob )
3838 #endif // !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
3939}
4040
@@ -60,7 +60,7 @@ public protocol SerialExecutor: Executor {
6060 @_nonoverride
6161 @available ( SwiftStdlib 5 . 9 , * )
6262 @available ( * , deprecated, message: " Implement 'enqueue(_: __owned ExecutorJob)' instead " )
63- func enqueue( _ job: __owned Job)
63+ func enqueue( _ job: consuming Job )
6464 #endif // !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
6565
6666 #if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
@@ -70,7 +70,7 @@ public protocol SerialExecutor: Executor {
7070 // work-scheduling operation.
7171 @_nonoverride
7272 @available ( SwiftStdlib 5 . 9 , * )
73- func enqueue( _ job: __owned ExecutorJob)
73+ func enqueue( _ job: consuming ExecutorJob )
7474 #endif // !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
7575
7676 /// Convert this executor value to the optimized form of borrowed
@@ -110,11 +110,11 @@ extension Executor {
110110 self . enqueue ( ExecutorJob ( job) )
111111 }
112112
113- public func enqueue( _ job: __owned ExecutorJob) {
113+ public func enqueue( _ job: consuming ExecutorJob ) {
114114 self . enqueue ( Job ( job) )
115115 }
116116
117- public func enqueue( _ job: __owned Job) {
117+ public func enqueue( _ job: consuming Job ) {
118118 self . enqueue ( UnownedJob ( job) )
119119 }
120120}
0 commit comments