您可以使用 loop.run_in_executor 与 ProcessPoolExecutor 一起在单独的进程中启动功能. @ app.post("/async-endpoint")异步def test_endpoint():循环= ...
確定! 回上一頁