force wait for idle

This commit is contained in:
Will McGugan
2023-02-09 10:18:01 +00:00
parent b0a9c743ea
commit 7f997023ce

View File

@@ -53,6 +53,7 @@ class Pilot(Generic[ReturnType]):
async def wait_for_scheduled_animations(self) -> None:
"""Wait for any current and scheduled animations to complete."""
await self._app.animator.wait_until_complete()
await wait_for_idle(0)
async def exit(self, result: ReturnType) -> None:
"""Exit the app with the given result.