Primer commit

This commit is contained in:
2025-05-05 02:21:55 +02:00
commit 7b6f525809
62 changed files with 78661 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import asyncio
async def tarea(nombre, segundos):
print(f"{nombre} empieza")
await asyncio.sleep(segundos)
print(f"{nombre} termina después de {segundos} segundos")
async def main():
await asyncio.gather(
tarea("Tarea A", 2),
tarea("Tarea B", 3)
)
asyncio.run(main())