diff --git a/progress.go b/progress.go index 82b610c..b158f26 100644 --- a/progress.go +++ b/progress.go @@ -29,34 +29,27 @@ done chan struct{} } -type ( - pState struct { - bHeap *priorityQueue - shutdownPending []*Bar - heapUpdated bool - zeroWait bool - idCounter int - width int - format string - rr time.Duration - cw *cwriter.Writer - ticker *time.Ticker - pMatrix map[int][]chan int - aMatrix map[int][]chan int - - // following are provided by user - uwg *sync.WaitGroup - cancel <-chan struct{} - shutdownNotifier chan struct{} - waitBars map[*Bar]*Bar - debugOut io.Writer - } - widthSyncer struct { - // Public for easy testing - Accumulator []chan int - Distributor []chan int - } -) +type pState struct { + bHeap *priorityQueue + shutdownPending []*Bar + heapUpdated bool + zeroWait bool + idCounter int + width int + format string + rr time.Duration + cw *cwriter.Writer + ticker *time.Ticker + pMatrix map[int][]chan int + aMatrix map[int][]chan int + + // following are provided by user + uwg *sync.WaitGroup + cancel <-chan struct{} + shutdownNotifier chan struct{} + waitBars map[*Bar]*Bar + debugOut io.Writer +} // New creates new Progress instance, which orchestrates bars rendering process. // Accepts mpb.ProgressOption funcs for customization.