Skip to content

Commit

Permalink
Don't use RunContinuationsAsynchronously for our `TaskCompletionSou…
Browse files Browse the repository at this point in the history
…rce` (#1838)

It's not a good sign that this slowed everything down, but at least it's
easy to revert. More investigation is required.
  • Loading branch information
SeeminglyScience committed Jun 22, 2022
1 parent fa6a043 commit 1c167d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal abstract class SynchronousTask<TResult> : ISynchronousTask
CancellationToken cancellationToken)
{
Logger = logger;
_taskCompletionSource = new TaskCompletionSource<TResult>(TaskCreationOptions.RunContinuationsAsynchronously);
_taskCompletionSource = new TaskCompletionSource<TResult>();
_taskRequesterCancellationToken = cancellationToken;
_executionCanceled = false;
}
Expand Down

0 comments on commit 1c167d0

Please sign in to comment.