diff --git a/docs/usage.rst b/docs/usage.rst index 3d36b199..e490a2ef 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -442,7 +442,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():