Skip to main content

start_poll_loop

Function start_poll_loop 

Source
pub fn start_poll_loop(
    config: PollConfig,
) -> (PollHandle, Receiver<PollEvent>, PollConfig)
Expand description

Start a polling loop that reads PIDs and sends events to a channel.

Returns a (PollHandle, Receiver, PollConfig) triple. Use PollHandle to stop or adjust. The polling task runs on the current tokio runtime.

BR-6.1: Cancellable via PollHandle::stop() BR-6.4: Single PID failure emits PollEvent::Error, doesn’t stop the loop BR-6.5: Task is tracked via PollHandle