mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
Config locks (#2654)
* Config locks Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Add locks for all_XXX Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Remove a word Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Add acquire_lock kwarg for value context manager Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Add towncrier entry Signed-off-by: Toby <tobyharradine@gmail.com> * Fix issues with `get_custom_lock` and `get_members_lock` Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
committed by
Michael H
parent
a8091332b8
commit
af096bc1cc
1
changelog.d/2654.feature.rst
Normal file
1
changelog.d/2654.feature.rst
Normal file
@@ -0,0 +1 @@
|
||||
Added functions to acquire locks on Config groups and values. These locks are acquired by default when calling a value as a context manager. See :meth:`Value.get_lock` for details
|
||||
Reference in New Issue
Block a user