Codebase list golang-github-vbauerster-mpb / ae986aa
initialize externalRefresh chan Vladimir Bauer 3 years ago
1 changed file(s) with 9 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
7373 func NewWithContext(ctx context.Context, options ...ContainerOption) *Progress {
7474 ctx, cancel := context.WithCancel(ctx)
7575 s := &pState{
76 bHeap: priorityQueue{},
77 rows: make([]io.Reader, 0, 64),
78 pool: make([]*Bar, 0, 64),
79 rr: prr,
80 queueBars: make(map[*Bar]*Bar),
81 output: os.Stdout,
82 popPriority: math.MinInt32,
83 debugOut: io.Discard,
76 rr: prr,
77 bHeap: priorityQueue{},
78 rows: make([]io.Reader, 0, 64),
79 pool: make([]*Bar, 0, 64),
80 externalRefresh: make(chan interface{}),
81 queueBars: make(map[*Bar]*Bar),
82 output: os.Stdout,
83 popPriority: math.MinInt32,
84 debugOut: io.Discard,
8485 }
8586
8687 for _, opt := range options {