What is the twisted equivalent of the IOLoop.add_callback tornado?

I am trying to adapt some tornado code to work with twisted ones.

Tornado IOLoop has a function ( add_callback) that essentially calls the function in the next iteration of the loop. As far as I can tell, twisted has no direct translation. Is there any way to simulate this in a twisted?

+3
source share
1 answer

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

+6
source

Source: https://habr.com/ru/post/1758811/


All Articles