Skip to content

doc: add additional info on TSFN dispatch - #48367

Closed
mhdawson wants to merge 3 commits into
nodejs:mainfrom
mhdawson:TFSN-doc
Closed

doc: add additional info on TSFN dispatch#48367
mhdawson wants to merge 3 commits into
nodejs:mainfrom
mhdawson:TFSN-doc

Conversation

@mhdawson

Copy link
Copy Markdown
Member

Refs: #48356

Refs: nodejs#48356
Signed-off-by: Michael Dawson <mdawson@devrus.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/node-api

@nodejs-github-botnodejs-github-bot added doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API. labels Jun 6, 2023
@mhdawson

mhdawson commented Jun 6, 2023

Copy link
Copy Markdown
MemberAuthor

Implementation of dispatch is here:

voidDispatch() {

Currently at least 1 and up to 1000 callbacks in the queue will be invoked, but that I believe should be left as an implementation detail. Doc is updated to indicate that more than one can be invoked in tick, but there is no guarantee as to how many will be in any given tick.

@nodejs/node-api does that seem reasonable to everybody?

Comment threaddoc/api/n-api.md Outdated
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
Comment threaddoc/api/n-api.md Outdated
Co-authored-by: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
mhdawson added a commit that referenced this pull request Jun 12, 2023
Refs: #48356
Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: #48367
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
@mhdawson

Copy link
Copy Markdown
MemberAuthor

Landed in 1da9099

RafaelGSS pushed a commit that referenced this pull request Jul 3, 2023
Refs: #48356
Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: #48367
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
@RafaelGSSRafaelGSS mentioned this pull request Jul 3, 2023
Ceres6 pushed a commit to Ceres6/node that referenced this pull request 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 pull request 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>
ruyadorno pushed a commit that referenced this pull request Sep 7, 2023
Refs: #48356
Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: #48367
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
@ruyadornoruyadorno mentioned this pull request Sep 8, 2023
ruyadorno pushed a commit that referenced this pull request Sep 13, 2023
Refs: #48356
Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: #48367
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.node-apiIssues and PRs related to the Node-API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@mhdawson@nodejs-github-bot@tniessen@legendecas@VoltrexKeyva