Method
__aexit__
(
self,
exc_type: Optional[Type[BaseException]] = None,
exc_val: Optional[BaseException] = None,
exc_tb: Optional[TracebackType] = None,
)
Source from the content-addressed store, hash-verified
| 1057 | return self.connection |
| 1058 | |
| 1059 | async def __aexit__( |
| 1060 | self, |
| 1061 | exc_type: Optional[Type[BaseException]] = None, |
| 1062 | exc_val: Optional[BaseException] = None, |
| 1063 | exc_tb: Optional[TracebackType] = None, |
| 1064 | ) -> None: |
| 1065 | self.done = True |
| 1066 | con = self.connection |
| 1067 | self.connection = None |
| 1068 | await self.pool.release(con) |
| 1069 | |
| 1070 | def __await__(self): |
| 1071 | self.done = True |
Callers
nothing calls this directly
Tested by
no test coverage detected