class documentation

class RunningTimeout(object):

View In Hierarchy

Class to calculate remaining timeout when doing several operations.

Method __init__ Initializes this class.
Method Remaining Returns the remaining timeout.
Class Variable __slots__ Undocumented
Instance Variable _allow_negative Undocumented
Instance Variable _start_time Undocumented
Instance Variable _time_fn Undocumented
Instance Variable _timeout Undocumented
def __init__(self, timeout, allow_negative, _time_fn=time.time):

Initializes this class.

Parameters
timeout:floatTimeout duration
allow_negative:boolWhether to return values below zero
_time_fnTime function for unittests
def Remaining(self):

Returns the remaining timeout.

__slots__: list[str] =

Undocumented

_allow_negative =

Undocumented

_start_time =

Undocumented

_time_fn =

Undocumented

_timeout =

Undocumented