Skip to content

Add is empty method to the API#1242

Merged
phil-opp merged 1 commit intomainfrom
add-is-empty-method
Dec 1, 2025
Merged

Add is empty method to the API#1242
phil-opp merged 1 commit intomainfrom
add-is-empty-method

Conversation

@haixuanTao
Copy link
Copy Markdown
Collaborator

No description provided.


/// Check if there are any buffered events in the scheduler.
pub fn is_empty(&self) -> bool {
self.scheduler.is_empty()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also check self.receiver.is_empty() here

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch thanks!

@phil-opp phil-opp merged commit 19082e1 into main Dec 1, 2025
75 of 76 checks passed
@phil-opp phil-opp deleted the add-is-empty-method branch December 1, 2025 11:48
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

Successfully merging this pull request may close these issues.

2 participants