Merge pull request #25362 from dotnet/pranavkm-patch-2

Do not specify TaskCreationOptions \ TaskContinuationOptions in JSRuntime
This commit is contained in:
Artak 2020-08-28 15:31:32 -07:00 committed by GitHub
commit 5ba7c70a36
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(() =>