github.com/weedge/lib@v0.0.0-20230424045628-a36dcc1d90e4/poller/netpoll/util.go (about)

     1  package netpoll
     2  
     3  import "syscall"
     4  
     5  func temporaryErr(err error) bool {
     6  	errno, ok := err.(syscall.Errno)
     7  	if !ok {
     8  		return false
     9  	}
    10  	return errno.Temporary()
    11  }