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

Experimental issue of Async-hooks in Nodejs docs. #56

Open
hadirsa opened this issue Feb 24, 2020 · 2 comments
Open

Experimental issue of Async-hooks in Nodejs docs. #56

hadirsa opened this issue Feb 24, 2020 · 2 comments

Comments

@hadirsa
Copy link

hadirsa commented Feb 24, 2020

Hi, community. We are deciding to use a package that has this cls-hooked in its dependencies.
We know that this package uses async_hooks which has marked as Experimental in Nodejs docs:
https://nodejs.org/api/async_hooks.html#async_hooks_async_hooks

The question is:
Is there any plan for the depreciation of async_hooks in the Node Js new versions?
I mean that what we will do if async_hooks gets deprecated.

I appreciate any recommendations.

@paambaati
Copy link

@hadirsa The async_hooks API is finally out of experimental and is now part of the stable Node v14 APIs.

@Rauttis
Copy link

Rauttis commented Apr 28, 2020

@hadirsa The async_hooks API is finally out of experimental and is now part of the stable Node v14 APIs.

Got a source for this? The node docs for v14 still claim it is experimental: https://nodejs.org/docs/latest-v14.x/api/async_hooks.html

Newer versions of 13 and 14 does add AsyncLocalStorage though, which actually has a very similar api to CLS. I believe it is just syntax sugar on top of async hooks though, so it is experimental as well.

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

No branches or pull requests

3 participants