File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Workers API in NativeScript is loosely based on the [Dedicated Web Workers API](
23
23
### Worker Object prototype
24
24
- ` new Worker(path) ` - creates an instance of a Worker and spawns a new OS thread, where the script pointed to by the ` path ` parameter is executed.
25
25
- ` postMessage(message) ` - sends a JSON-serializable message to the associated script's ` onmessage ` event handler.
26
- - ` terminate() ` - terminates the execution of the worker thread on the next run loop tick
26
+ - ` terminate() ` - terminates the execution of the worker thread on the next run loop tick.
27
27
28
28
** Worker** Object event handlers
29
29
- ` onmessage(message) ` - handle incoming messages sent from the associated worker thread. The message object has the following properties:
You can’t perform that action at this time.
0 commit comments