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

question about asyncwrap #78

Closed
ORESoftware opened this issue Jan 2, 2017 · 1 comment
Closed

question about asyncwrap #78

ORESoftware opened this issue Jan 2, 2017 · 1 comment

Comments

@ORESoftware
Copy link

I saw that async-wrap made it into Node.js

https://github.com/nodejs/node/blob/master/src/async-wrap.cc

is there any documentation about how to use it?
sorry for spam question, but don't know who to ask.

@AndreasMadsen
Copy link
Member

AndreasMadsen commented Jan 2, 2017

It has been there for about 2 years I think. Currently it is an undocumented API, which means that it is completely unsupported. So expect bugs, pain, and an API that will change under your feet in a single patch update.

But yes we do have documentation for the undocumented API :) – https://github.com/nodejs/diagnostics/tree/master/tracing/AsyncWrap

The API is actually guaranteed to change drastically, the official API will be called async-hooks.

But regardless of it being an undocumented API, we would still like to hear your thoughts.

If you have specific question to the current API feel free to open a new issue. Questions to the upcoming API should be put in the enhancements proposal.


I've also made a module that fixes some issues with the current implementation. It is most confusingly called https://github.com/AndreasMadsen/async-hook – When async-hooks is released I will change it to just be an alias, I promise :)

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

2 participants