async def stop(self, force: bool=False) -> None:
    self._running = False
    if self._acquire_cancel_scope:
        (await self._acquire_cancel_scope.cancel())
    if (force and self._task_group):
        (await self._task_group.cancel_scope.cancel())
async def stop(self, force: bool=False) -> None:
    self._running = False
    if self._acquire_cancel_scope:
        (await self._acquire_cancel_scope.cancel())
    if (force and self._task_group):
        (await self._task_group.cancel_scope.cancel())