-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
DelayQueue::len #1755
DelayQueue::len #1755
Conversation
Sorry for the delay. We have been busy! Could you merge master? Also, could you limit the Pr to the len fn? How to handle Fused is not figured out yet. Once we do, we can update everything across Tokio. |
Force-pushed a rebased version without |
woops, looks like somehow CI isn't passing. I will open an issue. |
Issue is #1895 |
The PR looks good, the doc example needs to be updated to pass CI 👍 |
Give me a few days to fix this, I have some hardware issues atm. |
Sorry that it took some time; this one is actually tested and should™ pass CI :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
Motivation
Some commits for unimplemented things in the
DelayQueue
.Solution
Add a
DelayQueue::len()
Sometimes it's useful to keep track of how many items we still have in the queue.
ImplementFusedStream
forDelayQueue
I'm not sure that this is a correct implementation, cfr #1754, and I'll gladly change the commit to reflect any other needed change.Change removed