MCPcopy Create free account
hub / github.com/aptly-dev/aptly / Cleanup

Method Cleanup

context/context.go:664–675  ·  view source on GitHub ↗

Cleanup does partial shutdown of context

()

Source from the content-addressed store, hash-verified

662
663// Cleanup does partial shutdown of context
664func (context *AptlyContext) Cleanup() {
665 context.Lock()
666 defer context.Unlock()
667
668 if context.downloader != nil {
669 context.downloader = nil
670 }
671 if context.progress != nil {
672 context.progress.Shutdown()
673 context.progress = nil
674 }
675}
676
677// NewContext initializes context with default settings
678func NewContext(flags *flag.FlagSet) (*AptlyContext, error) {

Callers 1

CleanupContextFunction · 0.45

Calls 1

ShutdownMethod · 0.65

Tested by

no test coverage detected