Skip to content

n-api,src: provide asynchronous cleanup hooks#34572

Closed
addaleax wants to merge 5 commits intonodejs:masterfrom
addaleax:async-cleanup-hook
Closed

n-api,src: provide asynchronous cleanup hooks#34572
addaleax wants to merge 5 commits intonodejs:masterfrom
addaleax:async-cleanup-hook

Conversation

@addaleax
Copy link
Member

Sometimes addons need to perform cleanup actions, for example
closing libuv handles or waiting for requests to finish, that
cannot be performed synchronously.

Add C++ API and N-API functions that allow providing such
asynchronous cleanup hooks.

Fixes: #34567

@nodejs/n-api

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

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

Labels

addons Issues and PRs related to native addons. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. node-api Issues and PRs related to the Node-API. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Worker thread aborts on terminate if native node module has an open async handle

6 participants