async def __aexit__(self, extype, ex, tb):
    try:
        if (extype is not None):
            (await self._rollback())
        else:
            (await self._commit())
    finally:
        self._managed = False
async def __aexit__(self, extype, ex, tb):
    try:
        if (extype is not None):
            (await self._rollback())
        else:
            (await self._commit())
    finally:
        self._managed = False