doc: add note about AsyncResource for Worker pooling · nodejs/node@5fc4e48 · GitHub
Skip to content

Commit 5fc4e48

Browse files
addaleaxBridgeAR
authored andcommitted
doc: add note about AsyncResource for Worker pooling
When implementing a pool for Worker threads, the correlation between posting tasks and getting their results may get lost, depending on the implementation. The `AsyncResource` API is the primary way to solve that issue, so link it from the recommendation in the worker docs. (This was brought up at the collaborator summit in Berlin.) PR-URL: #28023 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent b491eab commit 5fc4e48

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

doc/api/worker_threads.md

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)