当然,您只需要从主要部署的功能运行异步功能(在这里,您将部署
test功能):
import asyncioasync def foo(): return 'Asynchronicity!'async def bar(): return await foo()def test(request): return asyncio.run(bar())

当然,您只需要从主要部署的功能运行异步功能(在这里,您将部署
test功能):
import asyncioasync def foo(): return 'Asynchronicity!'async def bar(): return await foo()def test(request): return asyncio.run(bar())