2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-04-20 07:40:19 +08:00

Adding a method to return a task's opts

This commit is contained in:
Andy Gorman 2023-11-06 13:33:21 -08:00
parent 6a7bf2ceff
commit 4f1174d3e2

View File

@ -35,6 +35,7 @@ type Task struct {
func (t *Task) Type() string { return t.typename }
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.
//