Skip to content

Commit

Permalink
fix: change coroutine to task (#28) (#29)
Browse files Browse the repository at this point in the history
* fix: change coroutine to task (#28)

* fix: change coroutine to task (#28)

* Run black formatter
  • Loading branch information
kesmit13 authored May 12, 2023
1 parent d640de0 commit 7874484
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion austin_tui/view/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7874484

Please sign in to comment.