From 71a1f3ce5599dab922bb5ea9d475d5a62937560e Mon Sep 17 00:00:00 2001 From: Shroominic Date: Mon, 23 Oct 2023 19:03:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Updated=20asyncio=20and=20print?= =?UTF-8?q?=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/parallel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/parallel.py b/examples/parallel.py index c843dcc..c7cbf2e 100644 --- a/examples/parallel.py +++ b/examples/parallel.py @@ -4,12 +4,12 @@ async def main(): - await asyncio.gather(*[spawn_codebox() for _ in range(10)]) + await asyncio.gather(spawn_codebox() for _ in range(10)) async def spawn_codebox(): async with CodeBox() as codebox: - await codebox.arun("print('Hello World!')") + print(await codebox.arun("print('Hello World!')")) if __name__ == "__main__":