Skip to content

Commit 05fbc80

Browse files
HarshithaKPcodebytere
authored andcommittedMar 30, 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 224a17e commit 05fbc80

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
@@ -53,6 +53,10 @@ When implementing a worker pool, use the [`AsyncResource`][] API to inform
5353
diagnostic tools (e.g. in order to provide asynchronous stack traces) about the
5454
correlation between tasks and their outcomes.
5555

56+
Worker threads inherit non-process-specific options by default. Refer to
57+
[`Worker constructor options`][] to know how to customize worker thread options,
58+
specifically `argv` and `execArgv` options.
59+
5660
## `worker.isMainThread`
5761
<!-- YAML
5862
added: v10.5.0
@@ -748,6 +752,7 @@ active handle in the event system. If the worker is already `unref()`ed calling
748752
[`require('worker_threads').workerData`]: #worker_threads_worker_workerdata
749753
[`trace_events`]: tracing.html
750754
[`vm`]: vm.html
755+
[`Worker constructor options`]: #worker_threads_new_worker_filename_options
751756
[`worker.on('message')`]: #worker_threads_event_message_1
752757
[`worker.postMessage()`]: #worker_threads_worker_postmessage_value_transferlist
753758
[`worker.SHARE_ENV`]: #worker_threads_worker_share_env

0 commit comments

Comments
 (0)
Please sign in to comment.