Skip to content

Commit

Permalink
add sleep in index()
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelliao committed Nov 4, 2015
1 parent 9e84c9b commit 0761de3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/async/aio_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

from aiohttp import web

def index(request):
async def index(request):
await asyncio.sleep(0.5)
return web.Response(body=b'<h1>Index</h1>')

async def hello(request):
Expand Down

0 comments on commit 0761de3

Please sign in to comment.