close method
Stops a worker when called inside worker code.
Syntax
var retval = WorkerGlobalScope.close();Parameters
This method has no parameters.
Return value
Type: HRESULT
This method can return one of these values.
- S_OK
Remarks
Use the terminate method if you want to stop a worker from a parent thread.
See also
Show: