Files
cloudpods/pkg/util/azure/concurrent/request.go
T
2018-09-11 16:39:49 +08:00

10 lines
373 B
Go

package concurrent
// Request represents a work that Worker needs to execute
//
type Request struct {
ID string // The Id of the work (for debugging purposes)
Work func() error // The work to be executed by a worker
ShouldRetry func(err error) bool // The method used by worker to decide whether to retry if work execution fails
}