Method lrs::poll::Epoll::wait_timeout

Waits for an event to occur or a timeout to expire.

Syntax

impl Epoll {
    fn wait_timeout(&self, events: &'a mut [Event], timeout: Time) -> Result<&'a mut [Event], Errno>
}

Arguments

NameDescription
events

The buffer in which events will be stored.

timeout

The maximum time this call will block.

Return value

Returns a slice of events that occurred.