circuits.core.pollers – I/O Pollers — circuits 2.1.0 documentation

# circuits 2.1.0 documentation

# `circuits.core.pollers` – I/O Pollers

Poller Components for asynchronous file and socket I/O.

This module contains Poller components that enable polling of file or socket descriptors for read/write events. Pollers: - Select - Poll - EPoll

## Classes

none

## Components

class `circuits.core.pollers.` `BasePoller`(timeout=0.01, channel=None)

  Bases: `circuits.core.components.BaseComponent`

class `circuits.core.pollers.` `Select`(timeout=0.01, channel='select')

  Bases: `circuits.core.pollers.BasePoller`

  Select(...) -> new Select Poller Component

  Creates a new Select Poller Component that uses the select poller implementation. This poller is not recommended but is available for legacy reasons as most systems implement select-based polling for backwards compatibility.

class `circuits.core.pollers.` `Poll`(timeout=0.01, channel='poll')

  Bases: `circuits.core.pollers.BasePoller`

  Poll(...) -> new Poll Poller Component

  Creates a new Poll Poller Component that uses the poll poller implementation.

class `circuits.core.pollers.` `EPoll`(timeout=0.01, channel='epoll')

  Bases: `circuits.core.pollers.BasePoller`

  EPoll(...) -> new EPoll Poller Component

  Creates a new EPoll Poller Component that uses the epoll poller implementation.

## Events

none

## Functions

none