-
Notifications
You must be signed in to change notification settings - Fork 80
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
cancelling queued tasks should likely not splice/mutate the array #177
Comments
stefanpenner
changed the title
cancelling queued tasks should likely not mutating the array
cancelling queued tasks should likely not splice/mutate the array
Oct 30, 2016
Sounds like a good idea to me, I'll try to poke at it today... |
Submitted #178 to get a baseline before messing with things... |
replaced by #226 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rather then costly array splicing, we should just mark the particular task as "cancelled" and then skip it in the flush.
relevant code: https://github.com/ebryn/backburner.js/blob/master/lib/backburner/queue.js#L190-L217
The text was updated successfully, but these errors were encountered: