Skip to content

TSFN callback queue behavior clarification #48356

@ekraihan

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions