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
+1
-1
bar.go
less
more
455
455
for {
456
456
select {
457
457
case renderReq <- time.Now():
458
case <-b.done:
458
case <-b.ctx.Done():
459
459
return
460
460
}
461
461
}