Closed
Description
by gmale120:
import ( "fmt" "time" ) func main() { go aa() var str string fmt.Scan(&str) } func aa() { var t time.Time for { x := time.After(5 * time.Second) t = <-x fmt.Println(t) } } 如果我改变了系统的当前时间,然后这个就失效了。 我先把当前时间提前一小时,看有没有输入。等了很久,没有输出。 然后再改回来,还是没有输出。 就算你出问题,也别死在那里呀 不准没关系。失效问题就大了 Automatic translation If I change the system's current time, then this failure. I change the system's time befor current time. Wait for a long time, no output. And then change back,and wait a moment,still no output. There, even when you are out of the question, don't also died No it doesn't matter. Failure problem is big