no need to sleep, as it's going to block if not ready
Vladimir Bauer
3 years ago
1 changed file(s) with
0 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+0
-1
bar.go
less
more
449
449
for {
450
450
select {
451
451
case refreshCh <- time.Now():
452
time.Sleep(prr)
453
452
case <-b.done:
454
453
return
455
454
}