File tree 1 file changed +2
-3
lines changed
Sources/JavaScriptEventLoop
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 {
308
308
}
309
309
}
310
310
311
- func enqueue( _ job: consuming ExecutorJob ) {
311
+ func enqueue( _ job: UnownedJob ) {
312
312
precondition ( !workers. isEmpty, " No worker threads are available " )
313
313
314
- let job = UnownedJob ( job)
315
314
// If the current thread is a worker thread, enqueue the job to the current worker.
316
315
if let worker = Worker . currentThread {
317
316
worker. enqueue ( job)
@@ -356,7 +355,7 @@ public final class WebWorkerTaskExecutor: TaskExecutor {
356
355
/// Enqueue a job to the executor.
357
356
///
358
357
/// NOTE: Called from the Swift Concurrency runtime.
359
- public func enqueue( _ job: consuming ExecutorJob ) {
358
+ public func enqueue( _ job: UnownedJob ) {
360
359
Self . traceStatsIncrement ( \. enqueueExecutor)
361
360
executor. enqueue ( job)
362
361
}
You can’t perform that action at this time.
0 commit comments