Update JSRuntime.cs
This commit is contained in:
parent
7686c0b4e7
commit
aedd646f6f
|
|
@ -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(() =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue