0
如果我添加@ gen.coroutine來請求處理方法,由connexion生成,它停止工作 - 斷開與客戶端連接,不返回任何東西。異步連接(swagger codegen)python服務器使用龍捲風
如何使用connexion +龍捲風anyncronously? gen.sleep例如? 如果我在沒有@ gen.coroutine的請求處理程序中產生gen.sleep,它不會等待指定的時間。
如果我添加@ gen.coroutine來請求處理方法,由connexion生成,它停止工作 - 斷開與客戶端連接,不返回任何東西。異步連接(swagger codegen)python服務器使用龍捲風
如何使用connexion +龍捲風anyncronously? gen.sleep例如? 如果我在沒有@ gen.coroutine的請求處理程序中產生gen.sleep,它不會等待指定的時間。
我找到了答案。 這不是令人愉快的,但..
https://waffle.io/zalando/connexion/cards/57c036758b96c67f0165fb9f
@funseiki ... giving it more though we would need to actually do quite some changes in other parts of the Connexion code to support Tornado async. For now the answer is "not possible". :/