yuyo.timeouts#
Classes used for handling timing out components and reaction handlers.
AbstractTimeout #
NeverTimeout #
SlidingTimeout #
Bases: AbstractTimeout
Timeout strategy which resets every use.
This implementation times out if timeout
passes since the last call or when max_uses
is reached.
__init__ #
__init__(timeout, /, *, max_uses=1)
StaticTimeout #
Bases: AbstractTimeout
Timeout at a specific time.
This implementation times out when timeout_at
is reached or when max_uses
is reached.