Cleanup does partial shutdown of context
()
| 662 | |
| 663 | // Cleanup does partial shutdown of context |
| 664 | func (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 |
| 678 | func NewContext(flags *flag.FlagSet) (*AptlyContext, error) { |
no test coverage detected