We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pending
Lets say I have a queue for 10 tasks, I want to set it to pending if q.concurrency <= q.pending, before q.add(someTask),
q.concurrency <= q.pending
q.add(someTask)
But due to the internal implemetation of 'add()' method, the intertal pending++ got executed in the end of current eventloop, so when I do
items.forEach(item => { if(q.concurrency <= q.pending) { // set item pending } else { // set item loading } })
the current q.pending is not what I expected
q.pending
Helps appreciated!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Lets say I have a queue for 10 tasks,
I want to set it to pending if
q.concurrency <= q.pending
, beforeq.add(someTask)
,But due to the internal implemetation of 'add()' method, the intertal pending++ got executed in the end of current eventloop, so when I do
the current
q.pending
is not what I expectedHelps appreciated!
The text was updated successfully, but these errors were encountered: