Skip to content

Commit 2a32134

Browse files
committed
reto #15 - python
1 parent cb2376a commit 2a32134

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Roadmap/15 - ASINCRONÍA/python/KevinED11.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ async def function_e() -> None:
3737

3838

3939
async def execute_void_async_functions(funcs: Iterable[VoidAsyncFunction]) -> None:
40-
await asyncio.gather(*[func() for func in funcs])
40+
tasks = [func() for func in funcs]
41+
await asyncio.gather(*tasks)
4142

4243

4344
async def sleep_program(seconds: Number, name: str = "Sleep") -> None:

0 commit comments

Comments
 (0)