Skip to content

Commit c267bb2

Browse files
krutootargos
authored andcommitted
doc: fix example description for worker_threads
PR-URL: #41341 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Harshitha K P <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
1 parent ffe17a8 commit c267bb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/worker_threads.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if (isMainThread) {
4747
}
4848
```
4949

50-
The above example spawns a Worker thread for each `parse()` call. In actual
50+
The above example spawns a Worker thread for each `parseJSAsync()` call. In
5151
practice, use a pool of Workers for these kinds of tasks. Otherwise, the
5252
overhead of creating Workers would likely exceed their benefit.
5353

0 commit comments

Comments
 (0)