rustix::eventFunction poll
source pub fn poll(fds: &mut [PollFd<'_>], timeout: i32) -> Result<usize>
Expand description
poll(self.fds, timeout)
—Wait for events on lists of file descriptors.
On macOS, poll
doesn’t work on fds for /dev/tty or /dev/null, however
select
is available and does work on these fds.
§References