Skip to content

Commit

Permalink
doc: use serial comma in worker_threads docs
Browse files Browse the repository at this point in the history
Refs: #11321
Refs: #17384

PR-URL: #43220
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
  • Loading branch information
tniessen authored and danielleadams committed Jun 27, 2022
1 parent 65f20a0 commit b314906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ circularData.foo = circularData;
port2.postMessage(circularData);
```

`transferList` may be a list of [`ArrayBuffer`][], [`MessagePort`][] and
`transferList` may be a list of [`ArrayBuffer`][], [`MessagePort`][], and
[`FileHandle`][] objects.
After transferring, they are not usable on the sending side of the channel
anymore (even if they are not contained in `value`). Unlike with
Expand Down Expand Up @@ -814,8 +814,8 @@ Most Node.js APIs are available inside of it.

Notable differences inside a Worker environment are:

* The [`process.stdin`][], [`process.stdout`][] and [`process.stderr`][]
may be redirected by the parent thread.
* The [`process.stdin`][], [`process.stdout`][], and [`process.stderr`][]
streams may be redirected by the parent thread.
* The [`require('node:worker_threads').isMainThread`][] property is set to `false`.
* The [`require('node:worker_threads').parentPort`][] message port is available.
* [`process.exit()`][] does not stop the whole program, just the single thread,
Expand Down

0 comments on commit b314906

Please sign in to comment.