Skip to content

Commit

Permalink
Swap to asyncio.gather
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Jun 15, 2023
1 parent 282f2c6 commit 50d93b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textual/widgets/_tabbed_content.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

from asyncio import gather
from itertools import zip_longest
from typing import Generator

Expand Down Expand Up @@ -87,8 +88,7 @@ def __init__(self, *awaitables: AwaitMount | AwaitRemove) -> None:

def __await__(self) -> Generator[None, None, None]:
async def await_tabbed_content() -> None:
for awaitable in self._awaitables:
await awaitable
await gather(*self._awaitables)

return await_tabbed_content().__await__()

Expand Down

0 comments on commit 50d93b5

Please sign in to comment.