fix: UI buttons spin while waiting for tasks to complete

This commit is contained in:
garethgeorge
2023-12-31 11:36:36 -08:00
parent 85f70e64d1
commit c767fa7476
5 changed files with 42 additions and 19 deletions

View File

@@ -154,9 +154,10 @@ func (t *taskQueue) Dequeue(ctx context.Context) *scheduledTask {
}
type scheduledTask struct {
task Task
runAt time.Time
priority int
task Task
runAt time.Time
priority int
callbacks []func(error)
}
type scheduledTaskHeap struct {