mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
error message
This commit is contained in:
@@ -3410,6 +3410,7 @@ class App(Generic[ReturnType], DOMNode):
|
||||
child._close_messages(wait=True) for child in close_children
|
||||
]
|
||||
try:
|
||||
# Close all the children
|
||||
await asyncio.wait_for(
|
||||
asyncio.gather(*close_messages), self.CLOSE_TIMEOUT
|
||||
)
|
||||
@@ -3417,7 +3418,7 @@ class App(Generic[ReturnType], DOMNode):
|
||||
# Likely a deadlock if we get here
|
||||
# If not a deadlock, increase CLOSE_TIMEOUT, or set it to None
|
||||
raise asyncio.TimeoutError(
|
||||
f"Timeout waiting for {close_children!r} to close; possible deadlock\n"
|
||||
f"Timeout waiting for {close_children!r} to close; possible deadlock (consider changing App.CLOSE_TIMEOUT)\n"
|
||||
) from None
|
||||
finally:
|
||||
for child in children:
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
"""
|
||||
Called by test_pipe.py
|
||||
|
||||
"""
|
||||
|
||||
from textual.app import App
|
||||
from textual.binding import Binding
|
||||
from textual.widgets import Footer
|
||||
|
||||
Reference in New Issue
Block a user