Golang blocking and non blocking

后端 未结 3 1978
野的像风
野的像风 2020-12-23 14:16

I am somewhat confused over how Go handles non blocking IO. API\'s mostly look synchronous to me, and when watching presentations on Go, its not uncommon to hear comments li

3条回答
  •  自闭症患者
    2020-12-23 14:38

    There are some issues and pull request may be help you :)

    It maybe solve some questions like

    1. When golang will blocking IO operation?
    2. Why golang only use async io for socket instead of normal file?

      https://github.com/golang/go/issues/18507 https://github.com/golang/go/commit/c05b06a12d005f50e4776095a60d6bd9c2c91fac https://github.com/golang/go/issues/6222 https://github.com/golang/go/issues/6817 Epoll on regular files

提交回复
热议问题