Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试调整一些龙卷风代码以使用扭曲。
Tornado 的 IOLoop 有一个函数 ( add_callback),它本质上将在循环的下一次迭代中调用该函数。据我所知,twisted 没有直接的翻译。有没有办法在扭曲中模拟这个?
add_callback
reactor.callLater(0, x)或者reactor.callFromThread(x)
reactor.callLater(0, x)
reactor.callFromThread(x)