v icon indicating copy to clipboard operation
v copied to clipboard

select chan timeout

Open StringNick opened this issue 3 years ago • 0 comments

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

StringNick avatar Jul 29 '22 14:07 StringNick