Terminating workers

You can terminate a worker when you think it is no longer required. You can terminate a worker from either the worker itself or the parent script. Let us see how to do this in the next section.

Get Learn ECMAScript - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.