File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Sources/JavaScriptEventLoop Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -308,10 +308,9 @@ public final class WebWorkerTaskExecutor: TaskExecutor {
308308 }
309309 }
310310
311- func enqueue( _ job: consuming ExecutorJob ) {
311+ func enqueue( _ job: UnownedJob ) {
312312 precondition ( !workers. isEmpty, " No worker threads are available " )
313313
314- let job = UnownedJob ( job)
315314 // If the current thread is a worker thread, enqueue the job to the current worker.
316315 if let worker = Worker . currentThread {
317316 worker. enqueue ( job)
@@ -356,7 +355,7 @@ public final class WebWorkerTaskExecutor: TaskExecutor {
356355 /// Enqueue a job to the executor.
357356 ///
358357 /// NOTE: Called from the Swift Concurrency runtime.
359- public func enqueue( _ job: consuming ExecutorJob ) {
358+ public func enqueue( _ job: UnownedJob ) {
360359 Self . traceStatsIncrement ( \. enqueueExecutor)
361360 executor. enqueue ( job)
362361 }
You can’t perform that action at this time.
0 commit comments