quackamollie.core.bot.utils.bot_utils module

class quackamollie.core.bot.utils.bot_utils.ContextLock[source]

Bases: object

Lock an object when modifying shared memory resources across several asynchronous calls. Can be called in an async with statement thanks to __aenter__ and __aexit__ definitions