-
Notifications
You must be signed in to change notification settings - Fork 621
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
std/node/async_hooks: implement AsyncLocalStorage #2306
Comments
No, currently Deno has no infrastructure to track that. I'm sure it's something @cjihrig would be interested in. |
@bartlomieju I think we'll need to be cautious here. Node is keeping |
I think denoland/deno#5638 is the base infrastructure that'd be needed to track this? Of course if that's something that makes sense to impelement here per @cjihrig's response |
I think it makes sense to try to implement. I think we should make sure not to paint ourselves into any corners while doing so though since the future of |
@lbguilherme now that #15475 has landed, are you planning on working on this? |
Hi @ascorbic. I have been working on this but right now I can't find the time to finish it. I hope I can do so in the next few weeks, but if you or someone else need this and want to take over, that's not a problem. My WIP implementation is here: https://github.com/lbguilherme/deno_std/tree/feat/async_context |
That's great news. Your progress looks good. It's very interesting to me now because React has added support for using |
|
I have an existing application that depends on Node's
AsyncLocalStorage
to run properly and Deno doesn't support it yet in the compatibility mode. So this is a feature request for that.It has only two methods that are not marked as "experimental", I think the policy would be to implement only those:
I'm willing to contribute an implementation for that myself, but before I would like to ask if there is any existing machinery to track async contexts? Does Deno have some equivalent?
The text was updated successfully, but these errors were encountered: