diff --git a/examples/api.py b/examples/api.py index a61059d3..f9e34265 100644 --- a/examples/api.py +++ b/examples/api.py @@ -15,6 +15,4 @@ async def main(): if __name__ == "__main__": - loop = asyncio.new_event_loop() - asyncio.set_event_loop(loop) - loop.run_until_complete(main()) + asyncio.run(main())