mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
speed up shutdown
This commit is contained in:
@@ -1828,6 +1828,7 @@ class App(Generic[ReturnType], DOMNode):
|
|||||||
self._writer_thread.stop()
|
self._writer_thread.stop()
|
||||||
|
|
||||||
async def _on_exit_app(self) -> None:
|
async def _on_exit_app(self) -> None:
|
||||||
|
self._begin_batch() # Prevent repaint / layout while shutting down
|
||||||
await self._message_queue.put(None)
|
await self._message_queue.put(None)
|
||||||
|
|
||||||
def refresh(self, *, repaint: bool = True, layout: bool = False) -> None:
|
def refresh(self, *, repaint: bool = True, layout: bool = False) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user