diff --git a/README.rst b/README.rst index 3930259..81549e7 100644 --- a/README.rst +++ b/README.rst @@ -84,8 +84,6 @@ be integrated with it. # Simple handler that returns response after 100s async def simple(request): - loop = request.app.loop - print('Start sleeping') await asyncio.sleep(100) return web.Response(text="Simple answer") @@ -102,7 +100,7 @@ be integrated with it. # init monitor just before run_app with aiomonitor.start_monitor(loop=loop, locals=locals_): # run application with built-in aiohttp run_app function - web.run_app(app, port=port, host=host) + web.run_app(app, port=port, host=host, loop=loop) Let's save this code in file ``simple_srv.py``, so we can run it with the following command:: diff --git a/changes/379.misc.md b/changes/379.misc.md deleted file mode 100644 index 74d7a1b..0000000 --- a/changes/379.misc.md +++ /dev/null @@ -1 +0,0 @@ -Update the black formatter (23.3.0 -> 23.9.0) and adopt the new pre-commit optimized mirror diff --git a/changes/383.doc.md b/changes/383.doc.md new file mode 100644 index 0000000..d5e055e --- /dev/null +++ b/changes/383.doc.md @@ -0,0 +1 @@ +Add 383 news fragment