Skip to content

fix: BrighterTaskScheduler Queue Task When Complete#3450

Merged
iancooper merged 2 commits into
masterfrom
sync_await_false_fix
Dec 31, 2024
Merged

fix: BrighterTaskScheduler Queue Task When Complete#3450
iancooper merged 2 commits into
masterfrom
sync_await_false_fix

Conversation

@iancooper

Copy link
Copy Markdown
Member

When we complete adding, due to us pumping the pending continuations for a task, we struggle if we are then handed another continuation via the scheduler, as the blockingcollection is complete. (This seems to be a function of ConfigureAwait being called with false on an await in our scope - not sure wy)

In this case, we just use a "Hail Mary" approach (cribbed from RavenDb) of putting the queued task on a new thread.

@iancooper iancooper merged commit 65d03cd into master Dec 31, 2024
@iancooper iancooper deleted the sync_await_false_fix branch December 31, 2024 18:28

@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: FAILED

Change in average Code Health of affected files: -0.21 (9.08 -> 8.87)

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

#endregion

using System;
using System.Runtime.CompilerServices;

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 worse: Code Duplication
introduced similar code in: Run_AsyncTaskWithResultAndConfigurateAwait_BlockingCode_Still_Ends

Suppress

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant