GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: fix worker example to receive message · nodejs/node@b510cdc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • worker_threads.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/worker_threads.md‎

Copy file name to clipboardExpand all lines: doc/api/worker_threads.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ added: v10.5.0
377377
* `transferList` {Object[]}
378378

379379
Send a message to the worker that will be received via
380-
[`require('worker_threads').on('message')`][].
380+
[`require('worker_threads').parentPort.on('message')`][].
381381
See [`port.postMessage()`][] for more details.
382382

383383
### worker.ref()
@@ -480,7 +480,7 @@ active handle in the event system. If the worker is already `unref()`ed calling
480480
[`process.stdout`]: process.html#process_process_stdout
481481
[`process.title`]: process.html#process_process_title
482482
[`require('worker_threads').workerData`]: #worker_threads_worker_workerdata
483-
[`require('worker_threads').on('message')`]: #worker_threads_event_message_1
483+
[`require('worker_threads').parentPort.on('message')`]: #worker_threads_event_message
484484
[`require('worker_threads').postMessage()`]: #worker_threads_worker_postmessage_value_transferlist
485485
[`require('worker_threads').isMainThread`]: #worker_threads_worker_ismainthread
486486
[`require('worker_threads').parentPort`]: #worker_threads_worker_parentport

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.