Skip to content

Commit 4ed720e

Browse files
HarshithaKPMylesBorins
authored andcommittedMar 4, 2020
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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎doc/api/worker_threads.md

+5
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)
Please sign in to comment.