Optional
options: boolean | AddEventListenerOptionsOptional
options: boolean | AddEventListenerOptionsClones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
Optional
options: StructuredSerializeOptionsOptional
options: boolean | EventListenerOptionsOptional
options: boolean | EventListenerOptionsGenerated using TypeDoc
This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.