Skip to content

Commit 5ba7c70

Browse files
authored
Merge pull request #25362 from dotnet/pranavkm-patch-2
Do not specify TaskCreationOptions \ TaskContinuationOptions in JSRuntime
2 parents 0ebd5f0 + aedd646 commit 5ba7c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JSInterop/Microsoft.JSInterop/src/JSRuntime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ internal ValueTask<TValue> InvokeAsync<TValue>(
110110
object?[]? args)
111111
{
112112
var taskId = Interlocked.Increment(ref _nextPendingTaskId);
113-
var tcs = new TaskCompletionSource<TValue>(TaskContinuationOptions.RunContinuationsAsynchronously);
113+
var tcs = new TaskCompletionSource<TValue>();
114114
if (cancellationToken != default)
115115
{
116116
_cancellationRegistrations[taskId] = cancellationToken.Register(() =>

0 commit comments

Comments
 (0)