-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Static pipeline queue length number #461
Comments
In which case do you need to know the length of a pipeline queue? |
When using async loop, I have to execute pipeline to clear Node.js stack like the following pseudo code. Pseudo code:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Actually there is a static with named as
_queue
already.But using it seems very raw usage:
pipeline._queue.length
The code below might be more sense:
pipeline.stackCount()
orpipeline.commandCount()
In fact I prefer
_queue.length
usage because of it works synchronously. Nevertheless I made this suggestion.The text was updated successfully, but these errors were encountered: