Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix worker example to receive message #21486

Closed

Commits on Jul 17, 2018

  1. 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`.
    thefourtheye committed Jul 17, 2018
    Configuration menu
    Copy the full SHA
    d1b0121 View commit details
    Browse the repository at this point in the history