()
| 900 | } |
| 901 | |
| 902 | func (d *dependency) TaskRegistry() queue.TaskRegistry { |
| 903 | if d.taskRegistry != nil { |
| 904 | return d.taskRegistry |
| 905 | } |
| 906 | |
| 907 | d.taskRegistry = queue.NewTaskRegistry() |
| 908 | return d.taskRegistry |
| 909 | } |
| 910 | |
| 911 | func (d *dependency) Shutdown(ctx context.Context) error { |
| 912 | d.mu.Lock() |
no test coverage detected