Main thread
The main thread has tranferred this “transferable” to
worker and has no control over it anymore.
const canvasWorker = new Worker("./canvas-worker");
const offscreenCanvas = document
.getElementById(“canvas”)
.transferControlToOffscreen();
canvasWorker.postMessage(offscreenCanvas, [offscreenCanvas]);