mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
app task
This commit is contained in:
@@ -2099,7 +2099,7 @@ class App(Generic[ReturnType], DOMNode):
|
||||
|
||||
# Launch the app in the "background"
|
||||
|
||||
app_task = create_task(run_app(app), name=f"run_test {app}")
|
||||
self._task = app_task = create_task(run_app(app), name=f"run_test {app}")
|
||||
|
||||
# Wait until the app has performed all startup routines.
|
||||
await app_ready_event.wait()
|
||||
|
||||
@@ -545,7 +545,7 @@ async def test_async_reactive_watch_callbacks_go_on_the_watcher():
|
||||
def update(self):
|
||||
self.holder.attr = "hello world"
|
||||
|
||||
async def callback(self):
|
||||
def callback(self):
|
||||
nonlocal from_app
|
||||
from_app = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user