Creates a worker script.
URL of the worker's entrypoint module. Typically retrieved by
having the module export its import.meta.url, and importing
that from the module that creates the worker.
Optionaloptions: WorkerOptionsOptions to customize the worker.
Posts a message to the worker.
Use recv() to receive it inside the worker.
Optionaldata: ArrayBuffer | number[]Terminates the worker.
Worker script with its own JavaScript heap, lock, etc.
This is useful to move heavy processing to a background thread, allowing hooks to be handled in a timely manner.