Merge pull request #25362 from dotnet/pranavkm-patch-2
Do not specify TaskCreationOptions \ TaskContinuationOptions in JSRuntime
This commit is contained in:
commit
5ba7c70a36
|
|
@ -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