diff --git a/austin_tui/view/__init__.py b/austin_tui/view/__init__.py index 2bb7d25..9fda26d 100644 --- a/austin_tui/view/__init__.py +++ b/austin_tui/view/__init__.py @@ -149,7 +149,10 @@ async def _input_loop(self) -> None: event = self.root_widget._win.getkey() if event in self._event_handlers: done, pending = await asyncio.wait( - [_() for _ in self._event_handlers[event]] + [ + asyncio.create_task(_()) + for _ in self._event_handlers[event] + ] ) assert not pending if any(_.result() for _ in done):