How to enable uvicorn to run asynchronously constructed app?

后端 未结 0 539
予麋鹿
予麋鹿 2021-01-22 08:30

Given main.py:

import asyncio

async def new_app():
    # Await some things.

    async def app(scope, receive, send):
        ...

    return app

a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题