async def METHOD_NAME(self):
    ready_pattern = self.debug_config.server_ready_pattern
    timeout = 60 if ready_pattern else 10
    elapsed = 0
    delay = 0.5
    auto_ready_delay = 0.5
    while not self._ready and self.is_running() and elapsed < timeout:
        await asyncio.sleep(delay)
        if not ready_pattern:
            self._ready = self._last_activity < (time.time() - auto_ready_delay)
        elapsed += delay