fix: task cancellation

This commit is contained in:
Gareth George
2023-12-22 08:49:16 +00:00
parent 51f7482535
commit fc8d8b37a1
@@ -29,6 +29,7 @@ func (t *taskQueue) Push(tasks ...scheduledTask) {
defer t.mu.Unlock()
for _, task := range tasks {
task := task
if task.task == nil {
panic("task cannot be nil")
}