MCPcopy
hub / github.com/Textualize/textual / exit

Method exit

src/textual/pilot.py:562–570  ·  view source on GitHub ↗

Exit the app with the given result. Args: result: The app result returned by `run` or `run_async`.

(self, result: ReturnType)

Source from the content-addressed store, hash-verified

560 self.app.screen._on_timer_update()
561
562 async def exit(self, result: ReturnType) -> None:
563 """Exit the app with the given result.
564
565 Args:
566 result: The app result returned by `run` or `run_async`.
567 """
568 await self._wait_for_screen()
569 await wait_for_idle()
570 self.app.exit(result)

Callers

nothing calls this directly

Calls 2

_wait_for_screenMethod · 0.95
wait_for_idleFunction · 0.90

Tested by

no test coverage detected