Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

WorkerGlobalScope

 

 

Show:
© 2015 Microsoft