TaskScheduler helps manage tasks and ensures they are executed in sequential order. When a task of a certain type is enqueued, all pending tasks of the same type in the queue are removed. This avoids redundant queries and improves user perceived performance.
- Source: