문제

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) or reactor.callFromThread(x)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top