Skip to content

TSFN callback queue behavior clarification #48356

Description

@ekraihan

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.node-apiIssues and PRs related to Node-API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions