Codebase list golang-github-vbauerster-mpb / 2a53dfb
tryEarlyRefresh: select on b.ctx.Done() b.done is closed after b.ctx.Done() and here we want to quit asap. Vladimir Bauer 1 year, 10 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
455455 for {
456456 select {
457457 case renderReq <- time.Now():
458 case <-b.done:
458 case <-b.ctx.Done():
459459 return
460460 }
461461 }