Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4ed720e

Browse filesBrowse files
HarshithaKPMylesBorins
authored andcommitted
doc: visibility of Worker threads cli options
Fixes: #28518 PR-URL: #31380 Fixes: #28518 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2518213 commit 4ed720e
Copy full SHA for 4ed720e

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/worker_threads.md‎

Copy file name to clipboardExpand all lines: doc/api/worker_threads.md
+5Lines changed: 5 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ correlation between tasks and their outcomes. See
5555
["Using `AsyncResource` for a `Worker` thread pool"][async-resource-worker-pool]
5656
in the `async_hooks` documentation for an example implementation.
5757

58+
Worker threads inherit non-process-specific options by default. Refer to
59+
[`Worker constructor options`][] to know how to customize worker thread options,
60+
specifically `argv` and `execArgv` options.
61+
5862
## `worker.isMainThread`
5963
<!-- YAML
6064
added: v10.5.0
@@ -768,6 +772,7 @@ active handle in the event system. If the worker is already `unref()`ed calling
768772
[`trace_events`]: tracing.html
769773
[`v8.getHeapSnapshot()`]: v8.html#v8_v8_getheapsnapshot
770774
[`vm`]: vm.html
775+
[`Worker constructor options`]: #worker_threads_new_worker_filename_options
771776
[`worker.on('message')`]: #worker_threads_event_message_1
772777
[`worker.postMessage()`]: #worker_threads_worker_postmessage_value_transferlist
773778
[`worker.SHARE_ENV`]: #worker_threads_worker_share_env

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.