Search code examples
javascripthtmlweb-worker

What happens to running Web Worker when the browser is closed?


I have some functions which i need to call in web worker so that user will not get affect of it. Lets say the function requires 5 to 10 minutes of time to execute means to finish the task of web worker.

If web worker is running and in middle of that user closes the browser what will happen. I mean function will gets fully executed or it will terminated?


Solution

  • it will terminate the functions...