0

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?

user2864740
  • 60,010
  • 15
  • 145
  • 220
Indranil.Bharambe
  • 1,462
  • 3
  • 14
  • 25
  • 1
    http://stackoverflow.com/questions/8875310/what-happens-to-an-html5-web-worker-thread-when-the-tab-is-closed-while-its-run and http://stackoverflow.com/questions/20084348/what-happens-to-a-web-worker-if-i-close-the-page-that-created-this-web-worker – Spokey Dec 02 '13 at 10:38

2 Answers2

2

it will terminate the functions...

mano
  • 58
  • 3
-2

Basic opinion about this question:

when you colse the browser all functions can stop and that web worker also terminated.
Mr.G
  • 3,413
  • 2
  • 16
  • 20