Update JSRuntime.cs

This commit is contained in:
Pranav K 2020-08-28 09:53:25 -07:00 committed by GitHub
parent 7686c0b4e7
commit aedd646f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ namespace Microsoft.JSInterop
object?[]? args)
{
var taskId = Interlocked.Increment(ref _nextPendingTaskId);
var tcs = new TaskCompletionSource<TValue>(TaskContinuationOptions.RunContinuationsAsynchronously);
var tcs = new TaskCompletionSource<TValue>();
if (cancellationToken != default)
{
_cancellationRegistrations[taskId] = cancellationToken.Register(() =>