3 ms·
The shown label example for #2 is only one option, you could also use a simple loop: for loop := true; loop; { select { case <-time.After(t
by voidlogic 11y ago
The shown label example for #2 is only one option, you could also use a simple loop:
for loop := true; loop; {
select {
case <-time.After(time.Second):
fmt.Println("hello")
default:
loop = false
}
}
fmt.Println("ending")