transferControlToOffscreen method
The HTMLCanvasElement.transferControlToOffscreen()
method transfers
control to an OffscreenCanvas object, either on the main thread or on a
worker.
Implementation
external OffscreenCanvas transferControlToOffscreen();