Skip to content

Commit 56a81a4

Browse files
committedJul 6, 2024
Add doc comment
1 parent 4035114 commit 56a81a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

Diff for: ‎Sources/JavaScriptEventLoop/WebWorkerTaskExecutor.swift

+2
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ func _swjs_enqueue_main_job_from_worker(_ job: UnownedJob) {
441441
JavaScriptEventLoop.shared.enqueue(ExecutorJob(job))
442442
}
443443

444+
/// Wake up the worker thread.
445+
/// This function is called when a job is enqueued from the main thread to a worker thread.
444446
@_expose(wasm, "swjs_wake_worker_thread")
445447
func _swjs_wake_worker_thread() {
446448
WebWorkerTaskExecutor.Worker.currentThread!.run()

0 commit comments

Comments
 (0)