Add comment
This commit is contained in:
parent
c41f4332c7
commit
134c767484
|
|
@ -4,6 +4,7 @@ const {
|
|||
MessageChannel,
|
||||
} = require("worker_threads");
|
||||
|
||||
// See https://giuseppegurgone.com/synchronizing-async-functions/
|
||||
function wait_highlight(...args) {
|
||||
const worker = new Worker("./highlight_worker.js");
|
||||
const signal = new Int32Array(new SharedArrayBuffer(4));
|
||||
|
|
|
|||
Loading…
Reference in New Issue