update godoc for PopCompletedMode
Vladimir Bauer
2 years ago
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | // PopCompletedMode will pop completed bars to the top. | |
| 96 | // To stop rendering bar after it has been popped, use | |
| 97 | // mpb.BarRemoveOnComplete() option on that bar. | |
| 95 | // PopCompletedMode pop completed bars out of progress container. | |
| 96 | // In this mode completed bars get moved to the top and stop | |
| 97 | // participating in rendering cycle. | |
| 98 | 98 | func PopCompletedMode() ContainerOption { |
| 99 | 99 | return func(s *pState) { |
| 100 | 100 | s.popCompleted = true |