async def METHOD_NAME(self, cwd: PurePath) -> None:
    def cont() -> None:
        self._conn.close()
        self._conn = _init(self._vars_dir, cwd=cwd)
    async with self._lock:
        await self._ex.submit(cont)