Skip to content

Commit 50d93b5

Browse files
committed
Swap to asyncio.gather
See #2751 (comment)
1 parent 282f2c6 commit 50d93b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textual/widgets/_tabbed_content.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
from asyncio import gather
34
from itertools import zip_longest
45
from typing import Generator
56

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

8889
def __await__(self) -> Generator[None, None, None]:
8990
async def await_tabbed_content() -> None:
90-
for awaitable in self._awaitables:
91-
await awaitable
91+
await gather(*self._awaitables)
9292

9393
return await_tabbed_content().__await__()
9494

0 commit comments

Comments
 (0)