Better tex load cancellation handling

This commit is contained in:
Soreepeong 2024-02-22 16:32:58 +09:00
parent 517abb0c71
commit ba51ec52f5
3 changed files with 70 additions and 65 deletions

View file

@ -36,8 +36,9 @@ internal class TaskTracker : IDisposable, IServiceType
/// <summary>
/// Gets a read-only list of tracked tasks.
/// Intended for use only from UI thread.
/// </summary>
public static IReadOnlyList<TaskInfo> Tasks => TrackedTasksInternal.ToArray();
public static IReadOnlyList<TaskInfo> Tasks => TrackedTasksInternal;
/// <summary>
/// Clear the list of tracked tasks.