Files
node/doc/api
Sakthipriyan Vairamani (thefourtheye) b510cdc756 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`.

PR-URL: https://github.com/nodejs/node/pull/21486
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2018-07-19 09:36:06 +02:00
..
2018-06-13 08:45:04 +02:00
2018-07-15 19:02:29 +02:00
2018-07-18 13:19:10 +02:00
2018-05-08 14:22:25 -07:00
2018-07-16 21:12:35 +02:00
2018-07-15 19:02:29 +02:00
2018-06-13 08:45:04 +02:00
2018-07-04 08:22:14 +02:00
2018-06-28 20:41:09 +02:00
2018-05-08 14:22:25 -07:00
2018-06-13 08:45:04 +02:00
2018-07-16 21:12:35 +02:00
2018-07-16 21:12:35 +02:00
2018-07-15 19:02:29 +02:00
2018-07-15 19:02:29 +02:00
2018-07-18 13:19:10 +02:00
2018-06-13 08:45:04 +02:00
2018-07-16 21:12:35 +02:00
2018-07-15 19:02:29 +02:00
2018-07-15 19:02:29 +02:00
2018-05-08 14:22:25 -07:00
2018-07-15 19:02:29 +02:00
2018-07-16 21:12:35 +02:00
2018-05-04 12:48:38 -04:00
2018-07-15 19:02:29 +02:00
2018-07-15 19:02:29 +02:00
2018-05-08 14:22:25 -07:00
2018-05-08 14:22:25 -07:00
2018-07-15 19:02:29 +02:00
2018-07-15 19:02:29 +02:00
2018-07-16 21:12:53 +02:00