mirror of
https://github.com/hibiken/asynq.git
synced 2025-04-20 15:50:20 +08:00
Adding a method to return a task's opts
This commit is contained in:
parent
6a7bf2ceff
commit
4f1174d3e2
1
asynq.go
1
asynq.go
@ -35,6 +35,7 @@ type Task struct {
|
|||||||
|
|
||||||
func (t *Task) Type() string { return t.typename }
|
func (t *Task) Type() string { return t.typename }
|
||||||
func (t *Task) Payload() []byte { return t.payload }
|
func (t *Task) Payload() []byte { return t.payload }
|
||||||
|
func (t *Task) Options() []Option { return t.opts }
|
||||||
|
|
||||||
// ResultWriter returns a pointer to the ResultWriter associated with the task.
|
// ResultWriter returns a pointer to the ResultWriter associated with the task.
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user