Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: fix worker example to receive message
`require('worker_threads')` is not an instance of `EventEmitter`. So `on` method would not be in it. The correct way to receive the message would be to attach a listener to the `message` event on the `parentPort`.
- Loading branch information