-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TSFN callback queue behavior clarification #48356
Comments
Taking a look, will add something to the doc. |
mhdawson
added a commit
to mhdawson/io.js
that referenced
this issue
Jun 6, 2023
Refs: nodejs#48356 Signed-off-by: Michael Dawson <mdawson@devrus.com>
@mhdawson Awesome, thanks for the clarification |
Closed in #48367. |
Ceres6
pushed a commit
to Ceres6/node
that referenced
this issue
Aug 14, 2023
Refs: nodejs#48356 Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: nodejs#48367 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Ceres6
pushed a commit
to Ceres6/node
that referenced
this issue
Aug 14, 2023
Refs: nodejs#48356 Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: nodejs#48367 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected URL(s)
https://nodejs.org/api/n-api.html#asynchronous-thread-safe-function-calls
Description of the problem
Does a TSFN call only one callback from its queue per iteration of the event loop or does it call all callbacks in the queue in one iteration? Or maybe there is there some other policy?
Perhaps this detail could be clarified in the docs?
Thanks!
The text was updated successfully, but these errors were encountered: