简体   繁体   中英

What is twisted's equivalent of tornado's IOLoop.add_callback?

I'm trying to adapt some tornado code to work with twisted.

Tornado's IOLoop has a function ( add_callback ) that will essentially call the function back in the next iteration of the loop. As far as I can tell, twisted doesn't have a direct translation of this. Is there any way to simulate this in twisted?

reactor.callLater(0, x)reactor.callFromThread(x)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM