-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Questions: will nodejs expose SetPromiseHook of V8 as javascript API in the future? #13139
Comments
I don’t think that’s likely, but you can open a PR and see where that goes if you really want.
I’m not sure, but maybe #13000 (Promise support for async_hooks) is the answer to your question? |
@JiaLiPassion Why is If you just want the promise part you can filter all events in |
@AndreasMadsen , thanks for reply, in fact Now
https://github.com/angular/zone.js/blob/master/STANDARD-APIS.md So if I just began to read the document about
Thank you for the information, basically I want to use all events with edit by @AndreasMadsen: fixed quote formatting. |
if it doesn't it is a bug :)
Sorry, it is now called PS: I recommend looking at dprof as a starting example, as it uses most of the |
@AndreasMadsen , thank you very much, I will try to re-implement And the |
Yes, you will have to wait on #13000 to get merged before promises are supported by |
@AndreasMadsen , thank you, I will keep track with nodejs/diagnostics#29 and #13000. |
Cool, I’ll close this as an answered question then. If you have any further questions, feel free to ask here! |
in the newest nodejs,
async_wrap
andasync_hooks
have been implemented in async_hooks initial implementation #11883.addPromiseHook
have been exposed in domain: support promises #12489I want to ask that will
addPromiseHook
be exposed as Javascript API? Or it will also use theasync_wrap
to intercept the promise lifecycle?The reason I asked is I want to implement an
async_hooks
versionzone.js
to resolve thenative
async/await
issue. currently nativeasync/await
of nodejs use native v8promise
and can't be tracked by javascript module.Thank you!
The text was updated successfully, but these errors were encountered: