Worker
Index
Constructors
constructor
Creates a new worker.
Properties
publicreadonlyfilePath
The file path that was used to create this worker.
publicreadonlyisPaused
Whether the worker is currently paused. See pause and resume.
publicreadonlyvalid
Whether this worker is still valid. See destroy.
publicstaticreadonlymaxWorkers
Maximum available workers per resource.
Methods
publicdestroy
Destroys the worker and stops it.
publicemit
Emits the specified event to the worker.
publicoff
Unsubscribes from Worker event handler with specified listener.
publicon
Listens to an event emitted by the worker.
publiconce
Listens to an event emitted by the worker once.
publicpause
Pauses execution of the worker.
publicresume
Resumes execution of the worker.
publicstart
Starts the worker script.
publicstaticaddSharedArrayBuffer
Adds a shared array buffer to the workers array buffer pool.
publicstaticremoveSharedArrayBuffer
Removes the shared array buffer from the workers array buffer pool.
Deprecated