v
v copied to clipboard
select chan timeout
V version: OS:
What did you do?
module main
import time
fn main() {
v := chan int{}
select {
_ := <- v {}
time.second {} // working if we use like time.second*1
}
}
https://devbits.app/play/wvF0kgoydXUI What did you expect to see? no error, to use time.Duration without multiply on int
What did you see instead? error