This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Handle worker termination with the 'exit' event and catch errors using the 'error' event.
You've completed the free preview. Subscribe to unlock every lesson in every course.