Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft