File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ correlation between tasks and their outcomes. See
55
55
[ "Using ` AsyncResource ` for a ` Worker ` thread pool"] [ async-resource-worker-pool ]
56
56
in the ` async_hooks ` documentation for an example implementation.
57
57
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
+
58
62
## ` worker.isMainThread `
59
63
<!-- YAML
60
64
added: v10.5.0
@@ -768,6 +772,7 @@ active handle in the event system. If the worker is already `unref()`ed calling
768
772
[ `trace_events` ] : tracing.html
769
773
[ `v8.getHeapSnapshot()` ] : v8.html#v8_v8_getheapsnapshot
770
774
[ `vm` ] : vm.html
775
+ [ `Worker constructor options` ] : #worker_threads_new_worker_filename_options
771
776
[ `worker.on('message')` ] : #worker_threads_event_message_1
772
777
[ `worker.postMessage()` ] : #worker_threads_worker_postmessage_value_transferlist
773
778
[ `worker.SHARE_ENV` ] : #worker_threads_worker_share_env
You can’t perform that action at this time.
0 commit comments