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 511d610

Browse filesBrowse files
jsmrcagatargos
authored andcommitted
doc: updated docs to include --experimental-worker flag
Updated worker-threads.md, cli.md and node.1 to include --experimental-worker flag PR-URL: #21461 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent 97b2186 commit 511d610
Copy full SHA for 511d610

File tree

Expand file treeCollapse file tree

3 files changed

+11
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+11
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/cli.md‎

Copy file name to clipboardExpand all lines: doc/api/cli.md
+7Lines changed: 7 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ added: v9.6.0
8181

8282
Enable experimental ES Module support in the `vm` module.
8383

84+
### `--experimental-worker`
85+
<!-- YAML
86+
added: v10.5.0
87+
-->
88+
89+
Enable experimental worker threads using the `worker_threads` module.
90+
8491
### `--force-fips`
8592
<!-- YAML
8693
added: v6.0.0
Collapse file

‎doc/api/worker_threads.md‎

Copy file name to clipboardExpand all lines: doc/api/worker_threads.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
The `worker` module provides a way to create multiple environments running
88
on independent threads, and to create message channels between them. It
9-
can be accessed using:
9+
can be accessed using the `--experimental-worker` flag and:
1010

1111
```js
1212
const worker = require('worker_threads');
Collapse file

‎doc/node.1‎

Copy file name to clipboardExpand all lines: doc/node.1
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ keyword support in REPL.
9191
.It Fl -experimental-vm-modules
9292
Enable experimental ES module support in VM module.
9393
.
94+
.It Fl -experimental-worker
95+
Enable experimental worker threads using worker_threads module.
96+
.
9497
.It Fl -force-fips
9598
Force FIPS-compliant crypto on startup
9699
(Cannot be disabled from script code).

0 commit comments

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