Determining what a script is waiting for. #4906
Answered
by
devsnek
PopeNobody
asked this question in
Q&A
|
I'm curious as to whether there is, from javascript, a way to enumerate active handles and active requests in the event loop. Specifically, I'd like to be able to find out why a node script that I think should have exited does not agree with me. Usually, it seems, it's because I've made a promise I have not kept ... But it would save me some hair pulling if I could determine which of my promises are unfulfilled. I found uv_loop_alive, and it seems to reduce to two things: active handles and active requests ( I am assuming that req is short for request ) .. but I have no idea how to convert those back to a notion that is meaningful in javascript. |
Answered by
devsnek
Feb 21, 2022
Replies: 0 comments 2 replies
|
i've used https://www.npmjs.com/package/wtfnode with great success |
1 reply
Answer selected by
aduh95
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i've used https://www.npmjs.com/package/wtfnode with great success