是否可以在连接中使用 Async,使用龙卷风的 swagger codegen python 服务器?

Is it possible to use Async in connexion, the swagger codegen python server using tornado?

如果我将 @gen.coroutine 添加到处理由 connexion 生成的请求的方法,它将停止工作。它会中断与客户端的连接并且不会 return 任何东西。

如何异步使用connexion+tornado? gen.sleep 例如? 如果我在没有@gen.coroutine的请求处理程序中yield 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". :/