Open xiaozhihong opened 1 year ago
The code time.NewTimer(0) will send the current time to the channel of the timer directly. And it case function poll.wait return a timeout error. On the other side, we must check the error of the return value of function poll.wait in read/write.
time.NewTimer(0)
poll.wait
The code
time.NewTimer(0)
will send the current time to the channel of the timer directly. And it case functionpoll.wait
return a timeout error. On the other side, we must check the error of the return value of functionpoll.wait
in read/write.