MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / init

Method init

tests/test_pool.py:155–160  ·  view source on GitHub ↗
(con)

Source from the content-addressed store, hash-verified

153 setup_called += 1
154
155 async def init(con):
156 nonlocal init_called
157 if con in cons:
158 raise RuntimeError('init was called more than once')
159 cons.add(con)
160 init_called += 1
161
162 async def reset(con):
163 nonlocal reset_called

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected