Termisu::Event::Poller::Poll
Inherits Termisu::Event::Poller / Reference / Object
Constants
Constructors
Instance methods
Creates a new timer with the specified interval.
interval- Time between timer expirationsrepeating- If true, timer auto-rearms; if false, fires once
Returns a TimerHandle for later modification or removal.
Raises IO::Error on system error.
Releases all resources held by the poller.
Closes internal file descriptors and clears timer state. Safe to call multiple times (idempotent).
Modifies an existing timer's interval.
handle- Timer to modifyinterval- New interval
Raises ArgumentError if handle is invalid.
Registers a file descriptor for event monitoring.
fd- File descriptor to monitorevents- Event types to monitor (read, write, error)
Raises IO::Error on system error.
Removes a timer.
Safe to call with already-removed handle (no-op).
Unregisters a file descriptor from event monitoring.
Safe to call with unregistered fd (no-op).
Waits for an event with timeout.
Returns nil if timeout expires without an event.
Handles EINTR internally by retrying.
Waits indefinitely for an event.
Blocks until an event occurs. Returns nil if the poller
is closed or interrupted in a way that signals shutdown.
Handles EINTR internally by retrying.