IO::Poll Methods
We've seen most of the IO::Poll methods already. Here is the definitive list.
|
$poll = IO::Poll->new Creates a new IO::Poll object. Unlike IO::Select, new() does not accept arguments. $mask = $poll->mask($handle [$mask]) Gets or sets the current event bitmask for the indicated handle. If no mask argument is specified, the current one is returned. Otherwise, the argument is used to set the mask. A mask of 0 removes the handle from the monitored set entirely. All handles are monitored for error conditions (POLLNVAL, POLLERR, POLLHUP) whether you request it in the bitmask or not. $poll->remove($handle) Removes the handle from the polling list. This is exactly equivalent to calling mask() with a bitmask argument of 0. $events ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access