0

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

如何异步使用 connexion+tornado?gen.sleep例如?如果我yield gen.sleep在请求处理程序中没有@gen.coroutine,它不会等待指定的时间。

4

1 回答 1

0

我找到了答案。虽然不愉快。。

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". :/

于 2016-11-16T09:27:41.500 回答