Add randomized tie-break for equal priority in OperationQueue#420
Merged
ChrisPulman merged 3 commits intomainfrom Nov 17, 2025
Merged
Add randomized tie-break for equal priority in OperationQueue#420ChrisPulman merged 3 commits intomainfrom
ChrisPulman merged 3 commits intomainfrom
Conversation
Introduces an option to randomize execution order among operations with equal priority across different keys in OperationQueue. Adds a new constructor parameter to enable this behavior and a deterministic seed for testing. Updates KeyedOperation comparison logic and adds a corresponding unit test.
Introduces a verified API approval file for .NET 4.7 and updates the .NET 8.0 approval to include a new OperationQueue constructor with randomization and seed parameters.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #420 +/- ##
==========================================
+ Coverage 74.16% 74.68% +0.52%
==========================================
Files 6 6
Lines 298 316 +18
Branches 52 58 +6
==========================================
+ Hits 221 236 +15
- Misses 62 63 +1
- Partials 15 17 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
glennawatson
approved these changes
Nov 17, 2025
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
feature
What is the current behavior?
#83
What is the new behavior?
Introduces an option to randomize execution order among operations with equal priority across different keys in OperationQueue. Adds a new constructor parameter to enable this behavior and a deterministic seed for testing. Updates KeyedOperation comparison logic and adds a corresponding unit test.
What might this PR break?
None, additional feature added, tests all pass.
Please check if the PR fulfills these requirements
Other information:
closes #83