MCPcopy
hub / github.com/aio-libs/aiohttp / close_pg

Function close_pg

demos/polls/aiohttpdemo_polls/main.py:29–31  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

27 pg = await init_postgres(conf['postgres'], loop)
28
29 async def close_pg(app):
30 pg.close()
31 await pg.wait_closed()
32
33 app.on_cleanup.append(close_pg)
34

Callers

nothing calls this directly

Calls 2

wait_closedMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected