sleep 5
Browse files
app.py
CHANGED
|
@@ -10,10 +10,10 @@ async def root():
|
|
| 10 |
|
| 11 |
@app.get("/info_sync")
|
| 12 |
def info_sync():
|
| 13 |
-
time.sleep(
|
| 14 |
return {"message": "sync"}
|
| 15 |
|
| 16 |
@app.get("/info_async")
|
| 17 |
async def info_async():
|
| 18 |
-
asyncio.sleep(
|
| 19 |
return {"message": "async"}
|
|
|
|
| 10 |
|
| 11 |
@app.get("/info_sync")
|
| 12 |
def info_sync():
|
| 13 |
+
time.sleep(5)
|
| 14 |
return {"message": "sync"}
|
| 15 |
|
| 16 |
@app.get("/info_async")
|
| 17 |
async def info_async():
|
| 18 |
+
asyncio.sleep(5)
|
| 19 |
return {"message": "async"}
|