Closed ianthomas23 closed 4 months ago
Currently using postMessage to send messages from the WebWorker to the main thread. This PR replaces this with the use of a comlink-compatible callback which allows us to add type annotations to the callback code.
postMessage
Currently using
postMessage
to send messages from the WebWorker to the main thread. This PR replaces this with the use of a comlink-compatible callback which allows us to add type annotations to the callback code.