Skip to content

fix: incorrect number of operationstartedcalls#3452

Merged
iancooper merged 1 commit into
masterfrom
scheduler_fixes
Jan 2, 2025
Merged

fix: incorrect number of operationstartedcalls#3452
iancooper merged 1 commit into
masterfrom
scheduler_fixes

Conversation

@iancooper

Copy link
Copy Markdown
Member

fix:

-incorrect number of operationstartedcalls
-make implementation closer to AsyncEx closer for error trapping

@iancooper iancooper added 3 - Done Bug v10 .NET Pull requests that update .net code labels Jan 2, 2025
@iancooper iancooper self-assigned this Jan 2, 2025
@iancooper iancooper merged commit 32c0605 into master Jan 2, 2025
@iancooper iancooper deleted the scheduler_fixes branch January 2, 2025 15:14

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.03 (9.19 -> 9.22)

  • Declining Code Health: 1 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅

View detailed results in CodeScene

Comment on lines +100 to +102
if (_disposed)
throw new ObjectDisposedException(nameof(BrighterSynchronizationContext));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

❌ New issue: Code Duplication
The module contains 2 functions with similar structure: OperationCompleted,OperationStarted

Suppress

{
var testThread = Thread.CurrentThread.ManagedThreadId;
var contextThread = BrighterSynchronizationHelper.Run(() => Thread.CurrentThread.ManagedThreadId);
var contextThread = BrighterAsyncContext.Run(() => Thread.CurrentThread.ManagedThreadId);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Getting better: Code Duplication
reduced similar code in: Current_FromBrighterSynchronizationHelper_IsBrighterSynchronizationHelper,SynchronizationContextCurrent_FromBrighterSynchronizationHelper_IsBrighterSynchronizationHelperSynchronizationContext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Done Bug .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant