We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4035114 commit 56a81a4Copy full SHA for 56a81a4
Sources/JavaScriptEventLoop/WebWorkerTaskExecutor.swift
@@ -441,6 +441,8 @@ func _swjs_enqueue_main_job_from_worker(_ job: UnownedJob) {
441
JavaScriptEventLoop.shared.enqueue(ExecutorJob(job))
442
}
443
444
+/// Wake up the worker thread.
445
+/// This function is called when a job is enqueued from the main thread to a worker thread.
446
@_expose(wasm, "swjs_wake_worker_thread")
447
func _swjs_wake_worker_thread() {
448
WebWorkerTaskExecutor.Worker.currentThread!.run()
0 commit comments