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

Rename Client Process method to Schedule

This commit is contained in:
Ken Hibino
2020-01-03 20:24:18 -08:00
parent 9256fb6023
commit 606b0fae64
6 changed files with 13 additions and 13 deletions

View File

@@ -33,12 +33,12 @@ func TestBackground(t *testing.T) {
bg.start(HandlerFunc(h))
client.Process(&Task{
client.Schedule(&Task{
Type: "send_email",
Payload: map[string]interface{}{"recipient_id": 123},
}, time.Now())
client.Process(&Task{
client.Schedule(&Task{
Type: "send_email",
Payload: map[string]interface{}{"recipient_id": 456},
}, time.Now().Add(time.Hour))