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

     1  // +build !linux,!darwin,!dragonfly,!freebsd,!netbsd,!openbsd
     2  
     3  package netpoll
     4  
     5  import "fmt"
     6  
     7  // New always returns an error to indicate that Poller is not implemented for
     8  // current operating system.
     9  func New(*Config) (Poller, error) {
    10  	return nil, fmt.Errorf("poller is not supported on this operating system")
    11  }