Skip to content
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

Migrate away from async_hooks #6386

Open
mattgodbolt opened this issue Apr 23, 2024 · 1 comment
Open

Migrate away from async_hooks #6386

mattgodbolt opened this issue Apr 23, 2024 · 1 comment

Comments

@mattgodbolt
Copy link
Member

Node docs be like:

We strongly discourage the use of the async_hooks API. Other APIs that can cover most of its use cases include:

AsyncLocalStorage tracks async context
process.getActiveResourcesInfo() tracks active resources

We use this in compilation-queue.ts

@partouf
Copy link
Contributor

partouf commented Apr 23, 2024

Both are still experimental, so we shouldn't be using these until a node upgrade where they're stable.

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

No branches or pull requests

2 participants