I am running a webworker from the browser.
From the parent script, I would like to check if the webworker is still running or if it is over.
terminate() and DedicatedWorkerGlobalScope. close() in order for these to let you know about it.
Show activity on this post. You should have the web worker post messages about events, like when it is finished work, this way the parent can listen to these messages/events and know when work has completed. The web worker can even post progress events, this is all up to you to build though, it does not come included.
terminate() The terminate() method of the Worker interface immediately terminates the Worker .
You should have the web worker post messages about events, like when it is finished work, this way the parent can listen to these messages/events and know when work has completed. The web worker can even post progress events, this is all up to you to build though, it does not come included.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With