mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-19 05:17:30 +08:00
Document options precedence
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user