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
Queue push API not great to queue arrays #1309
Comments
I'd be inclined to keep it as-is. Arrays are special cases, and I think wrapping them is better than making |
I think it's bad for readability both with array variable, or array literal. Actually I consider it worse with an array variable. Now I put a comment with my I don't see the downside of a variadic If no one else chimes in we're probably better of keeping it as-is. |
Also whenever Another alternative is to add |
From personal experience with |
I don't mind |
After thinking about this more, I really think we should keep it as is. The callback to Even if we made the callback required, it would also makes the TypeScript/Flow guys a bit unhappy because then they can't properly type the function (can't have params after |
Agreed. Closed. |
Right now if you want to push an Array to a queue to have it handled as a whole (not item by item) you need to double wrap it.
push
/unshift
terminology, it should match the behaviour of Arrays.I think it should be changed to.
I realize this is breaking and I don't expect it to be changed anytime soon. But I would like to propose this for a
3.0
change.Thoughts?
The text was updated successfully, but these errors were encountered: