Skip to content
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

FIFO versus LIFO #28

Open
brendantaylor-res opened this issue Jul 11, 2023 · 1 comment
Open

FIFO versus LIFO #28

brendantaylor-res opened this issue Jul 11, 2023 · 1 comment

Comments

@brendantaylor-res
Copy link

Thanks for this useful package!

As I understand it, this queue works like a FIFO (first in first out) buffer. Did you consider an option to make it a LIFO (last in first out) buffer? This would be a useful option in our application since we wish to send the most recent data in the queue first. In the event of a long network outage, the queue could become quite large and waiting to clear the queue before seeing the latest data is not ideal.

@i-e-b
Copy link
Owner

i-e-b commented Jul 11, 2023

Hi. Thanks for the comment.

Yes, this is FIFO. I might make a stack version -- it's a nice idea.
At the moment, I'm too pressed for time. PRs welcome if you're feeling up to it 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants