MCPcopy
hub / github.com/rclone/rclone / StopBackgroundRunners

Method StopBackgroundRunners

backend/cache/cache.go:1793–1800  ·  view source on GitHub ↗

StopBackgroundRunners will signal all the runners to stop their work can be triggered from a terminate signal or from testing between runs

()

Source from the content-addressed store, hash-verified

1791// StopBackgroundRunners will signal all the runners to stop their work
1792// can be triggered from a terminate signal or from testing between runs
1793func (f *Fs) StopBackgroundRunners() {
1794 f.cleanupChan <- false
1795 if f.opt.TempWritePath != "" && f.backgroundRunner != nil && f.backgroundRunner.isRunning() {
1796 f.backgroundRunner.close()
1797 }
1798 f.cache.Close()
1799 fs.Debugf(f, "Services stopped")
1800}
1801
1802// UnWrap returns the Fs that this Fs is wrapping
1803func (f *Fs) UnWrap() fs.Fs {

Callers 2

NewFsFunction · 0.95
cleanupFsMethod · 0.80

Calls 4

DebugfFunction · 0.92
isRunningMethod · 0.80
CloseMethod · 0.65
closeMethod · 0.45

Tested by 1

cleanupFsMethod · 0.64