Use default task scheduler.

This commit is contained in:
Ottermandias 2024-03-18 16:50:26 +01:00
parent 0ec440c388
commit 9f7b95746d
12 changed files with 16 additions and 16 deletions

View file

@ -64,7 +64,7 @@ public sealed class TextureManager : SingleTaskQueue, IDisposable
{
var token = new CancellationTokenSource();
var task = Enqueue(a, token.Token);
task.ContinueWith(_ => _tasks.TryRemove(a, out var unused), CancellationToken.None);
task.ContinueWith(_ => _tasks.TryRemove(a, out var unused), CancellationToken.None, TaskContinuationOptions.None, TaskScheduler.Default);
return (task, token);
}).Item1;
}