MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / WithTaskPullInterval

Function WithTaskPullInterval

pkg/queue/options.go:105–109  ·  view source on GitHub ↗

WithTaskPullInterval set task pull interval

(d time.Duration)

Source from the content-addressed store, hash-verified

103
104// WithTaskPullInterval set task pull interval
105func WithTaskPullInterval(d time.Duration) Option {
106 return OptionFunc(func(q *options) {
107 q.taskPullInterval = d
108 })
109}

Callers 3

IoIntenseQueueMethod · 0.92
RemoteDownloadQueueMethod · 0.92
EntityRecycleQueueMethod · 0.92

Calls 1

OptionFuncFuncType · 0.70

Tested by

no test coverage detected