Skip to content

Commit

Permalink
doc: fix example description for worker_threads
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
krutoo authored and targos committed Jan 14, 2022
1 parent ffe17a8 commit c267bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit c267bb2

Please sign in to comment.