Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! doc: add AsyncResource + Worker pool example
Co-Authored-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
addaleax and Trott authored Feb 4, 2020
commit e92e7aa30a40e9bd801323852ce079f901747748
3 changes: 2 additions & 1 deletion doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ overhead of creating Workers would likely exceed their benefit.
When implementing a worker pool, use the [`AsyncResource`][] API to inform
diagnostic tools (e.g. in order to provide asynchronous stack traces) about the
correlation between tasks and their outcomes. See
[here][async-resource-worker-pool] for an example implementation.
["Using `AsyncResource` for a `Worker` thread pool"][async-resource-worker-pool]
in the `async_hooks` documentation for an example implementation.

## `worker.isMainThread`
<!-- YAML
Expand Down