TaskMayPanic is a type to remind the developer that need to handle panic in the task.
| 72 | // TaskMayPanic is a type to remind the developer that need to handle panic in |
| 73 | // the task. |
| 74 | type TaskMayPanic interface { |
| 75 | // RecoverArgs returns the argument for pkg/util.Recover function of this task. |
| 76 | // The error returned is which will be passed to upper level, if not provided, |
| 77 | // we will use the default error. |
| 78 | RecoverArgs() (metricsLabel string, funcInfo string, err error) |
| 79 | } |
| 80 | |
| 81 | // Worker is worker interface. |
| 82 | type Worker[T TaskMayPanic, R any] interface { |
no outgoing calls
no test coverage detected