From c2ff67f20e04d9fc6d9cace6e5b7dc9e48e776d5 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Fri, 22 Mar 2024 09:16:22 +0300 Subject: [PATCH] docs: await Pool close --- docs/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index 21281b6b..f028cb9b 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -443,7 +443,7 @@ Web service that computes the requested power of two. app['pool'] = await asyncpg.create_pool(database='postgres', user='postgres') yield - app['pool'].close() + await app['pool'].close() def init_app():