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 danielleadams committed Feb 1, 2022
1 parent 46c38eb commit 41cfc32
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
@@ -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.

0 comments on commit 41cfc32

Please sign in to comment.