class documentation

class twisted.python.util.IntervalDifferential: (source)

View In Hierarchy

Given a list of intervals, generate the amount of time to sleep between "instants".

For example, given 7, 11 and 13, the three (infinite) sequences:

    7 14 21 28 35 ...
    11 22 33 44 ...
    13 26 39 52 ...

will be generated, merged, and used to produce:

    (7, 0) (4, 1) (2, 2) (1, 0) (7, 0) (1, 1) (4, 2) (2, 0) (5, 1) (2, 0)

New intervals may be added or removed as iteration proceeds using the proper methods.

Method __init__
Instance Variable intervals Undocumented
Instance Variable default Undocumented
Method __iter__ Undocumented
def __init__(self, intervals, default=60): (source)
ParametersintervalsThe intervals between instants. (type: list of int, long, or float param)
defaultThe duration to generate if the intervals list becomes empty. (type: int, long, or float)
intervals = (source)

Undocumented

default = (source)

Undocumented

def __iter__(self): (source)

Undocumented

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.