I have multiple threads running the same process that need to be able to to notify each other that something should not be worked on for the next n seconds its not the end o
You can also go for dictttl, which has MutableMapping, OrderedDict and defaultDict(list)
Initialize an ordinary dict with each key having a ttl of 30 seconds
data = {'a': 1, 'b': 2}
dict_ttl = DictTTL(30, data)
OrderedDict
data = {'a': 1, 'b': 2}
dict_ttl = OrderedDictTTL(30, data)
defaultDict(list)
dict_ttl = DefaultDictTTL(30)
data = {'a': [10, 20], 'b': [1, 2]}
[dict_ttl.append_values(k, v) for k, v in data.items()]