Codebase list golang-github-vbauerster-mpb / c393444
time.After one time Vladimir Bauer 9 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
339339 go func(listenCh <-chan int, resultCh chan<- int) {
340340 defer close(resultCh)
341341 widths := make([]int, 0, numBars)
342 abandon := time.After(userRR)
342343 loop:
343344 for {
344345 select {
347348 if len(widths) == numBars {
348349 break loop
349350 }
350 case <-time.After(userRR):
351 case <-abandon:
351352 return
352353 }
353354 }