Start this :class:`_asyncio.AsyncConnection` object's context outside of using a Python ``with:`` block.
(
self, is_ctxmanager: bool = False # noqa: U100
)
| 269 | ) |
| 270 | |
| 271 | async def start( |
| 272 | self, is_ctxmanager: bool = False # noqa: U100 |
| 273 | ) -> AsyncConnection: |
| 274 | """Start this :class:`_asyncio.AsyncConnection` object's context |
| 275 | outside of using a Python ``with:`` block. |
| 276 | |
| 277 | """ |
| 278 | if self.sync_connection: |
| 279 | raise exc.InvalidRequestError("connection is already started") |
| 280 | self.sync_connection = self._assign_proxied( |
| 281 | await greenlet_spawn(self.sync_engine.connect) |
| 282 | ) |
| 283 | return self |
| 284 | |
| 285 | @property |
| 286 | def connection(self) -> NoReturn: |
no test coverage detected