fix: task cancellation

This commit is contained in:
Gareth George
2023-12-22 08:49:16 +00:00
parent 9522ac18de
commit d49b72996e
@@ -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")
}