2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-26 11:16:12 +08:00

Change Handler interface to take context.Context

This commit is contained in:
Ken Hibino
2020-02-11 07:06:52 -08:00
parent 79a04e52a3
commit 1b41c721b4
5 changed files with 27 additions and 20 deletions

View File

@@ -5,6 +5,7 @@
package asynq
import (
"context"
"testing"
"time"
@@ -27,7 +28,7 @@ func TestBackground(t *testing.T) {
})
// no-op handler
h := func(task *Task) error {
h := func(ctx context.Context, task *Task) error {
return nil
}