MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / WithBackoffMaxDuration

Function WithBackoffMaxDuration

pkg/queue/options.go:67–71  ·  view source on GitHub ↗

WithBackoffMaxDuration set backoff max duration

(d time.Duration)

Source from the content-addressed store, hash-verified

65
66// WithBackoffMaxDuration set backoff max duration
67func WithBackoffMaxDuration(d time.Duration) Option {
68 return OptionFunc(func(q *options) {
69 q.backoffMaxDuration = d
70 })
71}
72
73// WithMaxRetry set max retry
74func WithMaxRetry(n int) Option {

Callers 6

ThumbQueueMethod · 0.92
MediaMetaQueueMethod · 0.92
IoIntenseQueueMethod · 0.92
RemoteDownloadQueueMethod · 0.92
EntityRecycleQueueMethod · 0.92
SlaveQueueMethod · 0.92

Calls 1

OptionFuncFuncType · 0.70

Tested by

no test coverage detected