github.com/Microsoft/azure-vhd-utils@v0.0.0-20230613175315-7c30a3748a1b/upload/concurrent/request.go (about) 1 package concurrent 2 3 // Request represents a work that Worker needs to execute 4 // 5 type Request struct { 6 ID string // The Id of the work (for debugging purposes) 7 Work func() error // The work to be executed by a worker 8 ShouldRetry func(err error) bool // The method used by worker to decide whether to retry if work execution fails 9 }