-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Added peeking to EventReader #13809
base: main
Are you sure you want to change the base?
Added peeking to EventReader #13809
Conversation
No idea why the MacOS build fails given I didn't touch those files at all? |
The issue is that par_read doesn't mark events as seen like read which I assumed it did, I ended up rewriting the tests to validate that behavior. Which par_read then failed. It looks like this has always been the behavior of par_read |
I keep accidentally committing this >_<
Added the fix from #13836 to this pull request too given I'm going to squash the files and tests associated with it. |
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.
Cool feature and great additions to documentation! Leaving a few nits and suggestions in doc comments.
I'm marking this as blocked by #13836. Once that gets merged and this gets enough reviews, this can be merged :) |
@BD103 I wouldn’t say this is blocked. In fact. This has the fix in it already so if this is merged the other PR doesn’t need to be. |
Failed because of a formatting requirement that I can’t really fix on my phone. Will take a look tomorrow. |
Fixed typo
Apparently I really can’t spell guaranteed
I would prefer we split it up into two different PRs, but I'll defer to maintainers on this. :) |
Only reason I included it in here is because I squash the existing iterator file anyway. |
Co-authored-by: poopy <gonesbird@gmail.com>
…eader as deprecated. Updated all uses of ManualEventReader to EventCursor. Deprecated Events::get_reader and replaced it with Events::get_cursor everywhere. Also took the opportunity to tidy up the events tests. Removed unrequried tests of Mutator and Reader and replaced them with tests of EventCursor, also removed unrequried E event and replaced with TestEvent in all tests. Sorted tests so they're easier to follow
50adea1
to
5a35f6b
Compare
This branch is now stacked on top of #13818 |
1519b84
to
bfe9dd9
Compare
Added peekability to EventReader for when you want to view an event but not mark it as read
Objective
Solution
Testing