Is there some way in Node.js to get an answer to this question?
...or better yet, get a count of the number of pending promises anywhere across the whole process.
If this has been discussed before, then I have no idea if anything has changed since then. Node.js constantly evolves and adds features.