Documentation
¶
Index ¶
Constants ¶
View Source
const ( EOF Read Write Closed Oneshot )
Variables ¶
Functions ¶
Types ¶
type Poll ¶
type Poll struct {
// contains filtered or unexported fields
}
func (*Poll) Wait ¶
Wait waits for events storing them to evs buffer. returned n is a number of events read the same as io.Reader works. to is timeout to wait.
If to is -1 it blocks until some event happen or interrupted. If to is 0 it returns immidietly even if no events occured. Otherwise it's a maximum time to wait.
Click to show internal directories.
Click to hide internal directories.