MCPcopy
hub / github.com/rclone/rclone / GetBackgroundUploadChannel

Method GetBackgroundUploadChannel

backend/cache/cache.go:1865–1870  ·  view source on GitHub ↗

GetBackgroundUploadChannel returns a channel that can be listened to for remote activities that happen in the background

()

Source from the content-addressed store, hash-verified

1863// GetBackgroundUploadChannel returns a channel that can be listened to for remote activities that happen
1864// in the background
1865func (f *Fs) GetBackgroundUploadChannel() chan BackgroundUploadState {
1866 if f.opt.TempWritePath != "" {
1867 return f.backgroundRunner.notifyCh
1868 }
1869 return nil
1870}
1871
1872func (f *Fs) isNotifiedRemote(remote string) bool {
1873 f.notifiedMu.Lock()

Callers 2

Calls

no outgoing calls

Tested by 2