簡體   English   中英

使用龍卷風在Connexion(Swagger Codegen)Python服務器中異步

[英]Async in connexion (swagger codegen) python server using tornado

如果我將@ gen.coroutine添加到由connexion生成的請求處理方法中,它將停止工作-斷開與客戶端的連接,不返回任何內容。

如何連續使用連接+龍卷風? 例如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". :/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM