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

Method init

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

Source from the content-addressed store, hash-verified

171 setup_called += 1
172
173 async def init(con):
174 nonlocal init_called
175 if con in cons:
176 raise RuntimeError('init was called more than once')
177 cons.add(con)
178 init_called += 1
179
180 async def reset(con):
181 nonlocal reset_called

Callers

nothing calls this directly

Calls 3

waitMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected