Document options precedence

This commit is contained in:
Ken Hibino
2019-12-21 10:02:03 -08:00
parent 4229073a24
commit f5b7e0cccd
2 changed files with 21 additions and 0 deletions

View File

@@ -68,6 +68,9 @@ const (
//
// Process returns nil if the task is registered successfully,
// otherwise returns non-nil error.
//
// opts specifies the behavior of task processing. If there are conflicting
// Option the last one overrides the ones before.
func (c *Client) Process(task *Task, processAt time.Time, opts ...Option) error {
opt := composeOptions(opts...)
msg := &rdb.TaskMessage{