Skip to content

Commit

Permalink
[browser][MT] fix rooting JSWebWorkerInstance (dotnet#108475)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara authored and sirntar committed Oct 3, 2024
1 parent 76e207b commit 7cb420f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public JSWebWorkerInstance(Func<Task<T>> body, CancellationToken cancellationTok
// We don't want the continuations of that task to run on JSWebWorker
// only the tasks created inside of the callback should run in JSWebWorker
// TODO TaskCreationOptions.HideScheduler ?
_taskCompletionSource = new TaskCompletionSource<T>(TaskCreationOptions.RunContinuationsAsynchronously);
_taskCompletionSource = new TaskCompletionSource<T>(this, TaskCreationOptions.RunContinuationsAsynchronously);
_thread = new Thread(ThreadMain);
_thread.Name = "JSWebWorker";
_resultTask = null;
Expand Down

0 comments on commit 7cb420f

Please sign in to comment.