3 ms·
In #2 you use Atomics.wait in the Worker instead and then it can signal the main thread when done. We use this to convert async browser APIs to service synchro
by wffurr 5y ago
In #2 you use Atomics.wait in the Worker instead and then it can signal the main thread when done.
We use this to convert async browser APIs to service synchronous callbacks that our C library compiled to WebAssembly expects.