summaryrefslogtreecommitdiff
path: root/doc/api/worker_threads.md
diff options
context:
space:
mode:
authorDmitry Petrov <dima.krutoo@yandex.ru>2021-12-31 05:16:14 +0500
committerGitHub <noreply@github.com>2021-12-31 00:16:14 +0000
commitdae64a98da56fd1e235465ceb548792407bfa438 (patch)
tree768ab115a6303fc39b5f24d6438fc2d4ed2cd95c /doc/api/worker_threads.md
parentc5ac0c67d92727bc76c226ff47d5d9050dfbfedb (diff)
downloadnode-new-dae64a98da56fd1e235465ceb548792407bfa438.tar.gz
doc: fix example description for worker_threads
PR-URL: https://github.com/nodejs/node/pull/41341 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Diffstat (limited to 'doc/api/worker_threads.md')
-rw-r--r--doc/api/worker_threads.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md
index 32285e9eac..cc09872117 100644
--- a/doc/api/worker_threads.md
+++ b/doc/api/worker_threads.md
@@ -47,7 +47,7 @@ if (isMainThread) {
}
```
-The above example spawns a Worker thread for each `parse()` call. In actual
+The above example spawns a Worker thread for each `parseJSAsync()` call. In
practice, use a pool of Workers for these kinds of tasks. Otherwise, the
overhead of creating Workers would likely exceed their benefit.