-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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 <[email protected]>
@mhdawson Awesome, thanks for the clarification |
mhdawson
added a commit
that referenced
this issue
Jun 12, 2023
Refs: #48356 Signed-off-by: Michael Dawson <[email protected]> PR-URL: #48367 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
Closed in #48367. |
RafaelGSS
pushed a commit
that referenced
this issue
Jul 3, 2023
Refs: #48356 Signed-off-by: Michael Dawson <[email protected]> PR-URL: #48367 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
Ceres6
pushed a commit
to Ceres6/node
that referenced
this issue
Aug 14, 2023
Refs: nodejs#48356 Signed-off-by: Michael Dawson <[email protected]> PR-URL: nodejs#48367 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
Ceres6
pushed a commit
to Ceres6/node
that referenced
this issue
Aug 14, 2023
Refs: nodejs#48356 Signed-off-by: Michael Dawson <[email protected]> PR-URL: nodejs#48367 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
ruyadorno
pushed a commit
that referenced
this issue
Sep 7, 2023
Refs: #48356 Signed-off-by: Michael Dawson <[email protected]> PR-URL: #48367 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
ruyadorno
pushed a commit
that referenced
this issue
Sep 13, 2023
Refs: #48356 Signed-off-by: Michael Dawson <[email protected]> PR-URL: #48367 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
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: