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

Add thread-safe message scheduling and related tests #1638

Merged

Conversation

amimelia
Copy link
Contributor

Introduce ScheduledMediumMessageQueue for thread-safe scheduling of messages. Updated Dispatcher to use the new queue and modified the scheduling logic for improved reliability. Added unit tests.

Fixes #1637

Introduce `ScheduledMediumMessageQueue` for thread-safe scheduling of messages. Updated `Dispatcher` to use the new queue and modified the scheduling logic for improved reliability. Added extensive unit tests to ensure correctness of message scheduling and publishing behavior under various scenarios.
Copy link
Member

@yang-xiaodong yang-xiaodong left a comment

Choose a reason for hiding this comment

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

LGMT, Thanks

@yang-xiaodong yang-xiaodong merged commit e3d851f into dotnetcore:master Jan 19, 2025
2 checks passed
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.

Thread-safety and cancellation handling issues in PublishDelayAsync with delay time < 1 minute
2 participants