The path to the Worker’s main script or module. Must be either an absolute path or a relative path (i.e. relative to the current working directory) starting with ./ or ../, or a WHATWG URL object using file: protocol. If options.eval is true, this is a string containing JavaScript code rather than a path.
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Returns a readable stream for a V8 snapshot of the current state of the Worker.
See [v8.getHeapSnapshot()
][] for more details.
If the Worker thread is no longer running, which may occur before the
['exit'
event][] is emitted, the returned Promise
will be rejected
immediately with an [ERR_WORKER_NOT_RUNNING
][] error
Stop all JavaScript execution in the worker thread as soon as possible.
Returns a Promise for the exit code that is fulfilled when the exit
event is emitted.
Generated using TypeDoc