【问题标题】:Integrating asyncronous twisted code into synchronous python code将异步扭曲代码集成到同步 python 代码中
【发布时间】:2016-01-19 12:18:51
【问题描述】:

如何获得包含 Twisted 实现的异步代码部分的同步代码?该代码部分还需要多次调用,这会干扰 reactor.run() 事件循环。 我要实现的是半同步/半异步模式。

【问题讨论】:

    标签: python asynchronous concurrency twisted


    【解决方案1】:

    对此有多种选择。可能你只想要Crochet,但LVH给了a PyCon talk on mixing Twisted together with various other systems,包括其他异步框架和“普通”同步Python代码;您可能想观看它以了解您的选择。

    【讨论】:

      猜你喜欢
      • 2016-04-16
      • 2022-10-14
      • 2023-03-10
      • 1970-01-01
      • 2014-02-19
      • 2018-07-06
      • 2013-10-24
      • 1970-01-01
      相关资源
      最近更新 更多