mirror of https://github.com/nodejs/node.git
doc: updated docs to include --experimental-worker flag
Updated worker-threads.md, cli.md and node.1 to include --experimental-worker flag PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
4dece043ba
commit
467a307986
|
@ -81,6 +81,13 @@ added: v9.6.0
|
|||
|
||||
Enable experimental ES Module support in the `vm` module.
|
||||
|
||||
### `--experimental-worker`
|
||||
<!-- YAML
|
||||
added: v10.5.0
|
||||
-->
|
||||
|
||||
Enable experimental worker threads using the `worker_threads` module.
|
||||
|
||||
### `--force-fips`
|
||||
<!-- YAML
|
||||
added: v6.0.0
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
The `worker` module provides a way to create multiple environments running
|
||||
on independent threads, and to create message channels between them. It
|
||||
can be accessed using:
|
||||
can be accessed using the `--experimental-worker` flag and:
|
||||
|
||||
```js
|
||||
const worker = require('worker_threads');
|
||||
|
|
|
@ -91,6 +91,9 @@ keyword support in REPL.
|
|||
.It Fl -experimental-vm-modules
|
||||
Enable experimental ES module support in VM module.
|
||||
.
|
||||
.It Fl -experimental-worker
|
||||
Enable experimental worker threads using worker_threads module.
|
||||
.
|
||||
.It Fl -force-fips
|
||||
Force FIPS-compliant crypto on startup
|
||||
(Cannot be disabled from script code).
|
||||
|
|
Loading…
Reference in New Issue