MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _Atomic

Class _Atomic

asyncpg/connection.py:2641–2654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2639
2640
2641class _Atomic:
2642 __slots__ = ('_acquired',)
2643
2644 def __init__(self):
2645 self._acquired = 0
2646
2647 def __enter__(self):
2648 if self._acquired:
2649 raise exceptions.InterfaceError(
2650 'cannot perform operation: another operation is in progress')
2651 self._acquired = 1
2652
2653 def __exit__(self, t, e, tb):
2654 self._acquired = 0
2655
2656
2657class _ConnectionProxy:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…