MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / aclose

Method aclose

lib/sqlalchemy/ext/asyncio/engine.py:492–502  ·  view source on GitHub ↗

A synonym for :meth:`_asyncio.AsyncConnection.close`. The :meth:`_asyncio.AsyncConnection.aclose` name is specifically to support the Python standard library ``@contextlib.aclosing`` context manager function. .. versionadded:: 2.0.20

(self)

Source from the content-addressed store, hash-verified

490 await greenlet_spawn(self._proxied.close)
491
492 async def aclose(self) -> None:
493 """A synonym for :meth:`_asyncio.AsyncConnection.close`.
494
495 The :meth:`_asyncio.AsyncConnection.aclose` name is specifically
496 to support the Python standard library ``@contextlib.aclosing``
497 context manager function.
498
499 .. versionadded:: 2.0.20
500
501 """
502 await self.close()
503
504 async def exec_driver_sql(
505 self,

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected