aiocoap.util.asyncio.timeoutdict module¶
-
class
aiocoap.util.asyncio.timeoutdict.
TimeoutDict
(timeout: float)¶ Bases:
object
A dict-ish type whose entries live on a timeout; adding and accessing an item each refreshes the timeout.
The timeout is a lower bound; items may live up to twice as long.
The container is implemented incompletely, with additions made on demand.
This is not thread safe.
-
timeout
= None¶ Timeout set on any access
This can be changed at runtime, but changes only take effect
-