sync vs async
Browse files
app.py
CHANGED
|
@@ -8,8 +8,8 @@ async def root():
|
|
| 8 |
|
| 9 |
@app.get("/info_sync")
|
| 10 |
def info_sync():
|
| 11 |
-
return {"message": "
|
| 12 |
|
| 13 |
@app.get("/info_async")
|
| 14 |
async def info_async():
|
| 15 |
-
return {"message": "
|
|
|
|
| 8 |
|
| 9 |
@app.get("/info_sync")
|
| 10 |
def info_sync():
|
| 11 |
+
return {"message": "sync"}
|
| 12 |
|
| 13 |
@app.get("/info_async")
|
| 14 |
async def info_async():
|
| 15 |
+
return {"message": "async"}
|