• exitCode {integer}

    The 'exit' event is emitted once the worker has stopped. If the worker exited by calling [process.exit()][], the exitCode parameter will be the passed exit code. If the worker was terminated, the exitCode parameter will be 1.

    This is the final event emitted by any Worker instance.