Do not use runtime.Gosched() in loop, which will spinning your CPUs time for endless coroutine context switching. It won't magically turn polling into blocking.
In addition, Golang's coroutines are preemptive since Go1.14. There will be no starving coroutines, we don't need to manually call runtime.Gosched() nowadays.
revert #101
Do not use
runtime.Gosched()
in loop, which will spinning your CPUs time for endless coroutine context switching. It won't magically turn polling into blocking.In addition, Golang's coroutines are preemptive since Go1.14. There will be no starving coroutines, we don't need to manually call
runtime.Gosched()
nowadays.