When you want to terminate a Web Worker from the main thread, you call the ________ method.

  • terminate()
  • end()
  • stop()
  • close()
To terminate a Web Worker from the main thread, you call the terminate() method. This method stops the execution of the worker thread. The other options are not the correct methods for terminating a Web Worker from the main thread.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *