This commit is contained in:
Will McGugan
2023-01-07 14:05:46 +00:00
parent fd9c1de3e2
commit 249c2f319f

View File

@@ -650,7 +650,7 @@ class App(Generic[ReturnType], DOMNode):
return await invoke(callback_with_args) return await invoke(callback_with_args)
# Post the message to the main loop # Post the message to the main loop
future: Future[Any] = asyncio.run_coroutine_threadsafe( future: Future[CallThreadReturnType] = asyncio.run_coroutine_threadsafe(
run_callback(), loop=self._loop run_callback(), loop=self._loop
) )
result = future.result() result = future.result()