Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed Feb 18, 2025
1 parent 2fbfdfc commit 7981b38
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Speckle.Sdk/Serialisation/V2/PriorityScheduler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ CancellationToken cancellationToken

protected override IEnumerable<Task> GetScheduledTasks() => _tasks;

public async ValueTask DisposeAsync()
{
public async ValueTask DisposeAsync()
{
await WaitForCompletion().ConfigureAwait(false);
_tasks.Dispose();
}
Expand All @@ -34,7 +34,7 @@ public async ValueTask WaitForCompletion()
{
await Task.Delay(TimeSpan.FromMilliseconds(500)).ConfigureAwait(false);
}
_threads = null;
_threads = null;
}

protected override void QueueTask(Task task)
Expand Down Expand Up @@ -100,5 +100,4 @@ protected override void QueueTask(Task task)
}

protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued) => false; // we might not want to execute task that should schedule as high or low priority inline

}

0 comments on commit 7981b38

Please sign in to comment.