Attributes

Class: SelectPoller

Methods

add (t, op, coro)

handle_errored (t, desc)

handle_events (t, ready, waiting_ops)

remove (t, op, coro)

run (t, timeout=0)

Run a poller loop and return new socket events. Timeout is a timedelta object, 0 if active coros or None.

select timeout param is a float number of seconds.

run_once (t, id, waiting_ops)

Run a operation, remove it from the poller and return the result. Called from the main poller loop.

run_operation (t, op)

Run the socket op and return result or exception.

run_or_add (t, op, coro)

Perform operation or add the operation in the poller if socket isn't ready. Called from the scheduller.

waiting_op (t, testcoro)

Attributes

Value of

0.02

Value of

20000000.0

Value of

20.0