aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-08-22 09:50:25 -0700
committerGravatar MarkKoz <[email protected]>2020-08-22 09:50:25 -0700
commit2544d192fd7403cf92cc568537bb93aa7a859815 (patch)
treefd3d790b1963a6f952df5b1f14395c83a4c2b9fc /tests
parentExplicitly use kwarg with respect_role_hierarchy (diff)
Decorators: replace asyncio.Lock with a custom object
Concerns were raised over possible race conditions due `asyncio.Lock` internally awaiting coroutines. Does a mere `await` suspend the current coroutine, or does it have to actually await something asynchronous, like a future? Avoid answering that question by doing away with the awaits, which aren't necessary but are there as a consequence of using `asyncio.Lock`. Instead, add a custom `LockGuard` object to replace the previous locks.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions