Add Config type to configure background processing behavior

This commit is contained in:
Ken Hibino
2019-12-29 16:55:51 -08:00
parent fc71857c7c
commit 9af14d9a6d
5 changed files with 34 additions and 13 deletions

View File

@@ -25,7 +25,7 @@ func NewClient(r *redis.Client) *Client {
return &Client{rdb}
}
// Option configures the behavior of task processing.
// Option specifies the processing behavior for the associated task.
type Option interface{}
// max number of times a task will be retried.