2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-22 09:56:12 +08:00

Change Background API to take Handler interface

This commit is contained in:
Ken Hibino
2019-12-02 20:42:21 -08:00
parent 1a996e0d40
commit b0a54cd2b2
5 changed files with 34 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ func TestBackground(t *testing.T) {
return nil
}
bg.start(h)
bg.start(HandlerFunc(h))
client.Process(&Task{
Type: "send_email",