TaskSelectClient.ioWait

Suspends the current task until epoll reports any event in events_expected for the I/O device or the I/O device times out.

class TaskSelectClient
Event
ioWait
out { assert (!this.task); }

Parameters

events_expected Event

the events to wait for (EPOLLHUP and EPOLLERR are always implicitly added)

Return Value

Type: Event

the events reported by epoll.

Throws

EpollException if registering with epoll failed, TimeoutException on timeout waiting for I/O events.

Meta