Codebase list golang-github-vbauerster-mpb / 77a668b
minor: var toggle Vladimir Bauer 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
7171 // context. It's not possible to reuse instance after (*Progress).Wait
7272 // method has been called.
7373 func NewWithContext(ctx context.Context, options ...ContainerOption) *Progress {
74 ctx, cancel := context.WithCancel(ctx)
7574 s := &pState{
7675 rr: prr,
7776 bHeap: priorityQueue{},
9493 s.shutdownNotifier = make(chan struct{})
9594 }
9695
96 ctx, cancel := context.WithCancel(ctx)
9797 p := &Progress{
9898 ctx: ctx,
9999 uwg: s.uwg,