From 46ec9c11273af80f56de00726afbf1a691c64a40 Mon Sep 17 00:00:00 2001 From: jay817 Date: Mon, 25 Nov 2024 14:04:11 -0500 Subject: [PATCH] Update nest-asyncio/README.md --- nest-asyncio/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nest-asyncio/README.md b/nest-asyncio/README.md index 7e50230..e2d50d4 100644 --- a/nest-asyncio/README.md +++ b/nest-asyncio/README.md @@ -1,5 +1,4 @@ ```python -'' import asyncio (loop := asyncio.get_event_loop()).__class__._check_running = lambda _: None def _run_once(self): @@ -10,7 +9,7 @@ def _run_once(self): tasks[self] = task loop.__class__._run_once = _run_once asyncio.run = loop.run_until_complete -'' + async def hello(): async def world(): print('hello') asyncio.run(world()) or print('world')