-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
make PriorityQueue array protected rather than private #140
Comments
That's very much intentional. Allowing subclassing makes pretty much any internal behavior public. It's not something I would want to commit to. However, I'm happy to see a "remove" like method added. |
It would be easier than to get people to fork it off. But I've gotten most of it done now. It's just a matter of figuring out how to call the Looking through the code it's not feasible to use the What I think it needs as well is to add the Going to continue the remove discussion on #76 |
Maybe we could imitate the prototype functions of |
@sindresorhus What do you think? This would allow the queue to support features like #76. |
Not sure I see the benefit of that? I think just adding a |
This will allow us to extend the existing priority queue to make methods that change to the underlying structure for example "remove" to remove entries from the promise queue for scenarios like an image component getting unmounted so there's no point in keeping the promise of downloading the image.
Right now I am copying the class and adding the new method
based off https://stackoverflow.com/a/54270177/242042
The text was updated successfully, but these errors were encountered: