MCPcopy Index your code
hub / github.com/kopia/kopia / stop

Method stop

internal/server/source_manager.go:301–308  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

299}
300
301func (s *sourceManager) stop(ctx context.Context) {
302 if u := s.currentUploader(); u != nil {
303 userLog(ctx).Infow("canceling current upload", "src", s.src)
304 u.Cancel()
305 }
306
307 close(s.closed)
308}
309
310func (s *sourceManager) waitUntilStopped() {
311 s.wg.Wait()

Callers 5

SetRepositoryMethod · 0.45
syncSourcesLockedMethod · 0.45
deleteSourceManagerMethod · 0.45
TestServerMaintenanceFunction · 0.45

Calls 2

currentUploaderMethod · 0.95
CancelMethod · 0.65

Tested by 1

TestServerMaintenanceFunction · 0.36