开发者

Best way to schedule a task to run in next iteration of a Twisted reactor loop

开发者 https://www.devze.com 2022-12-21 13:49 出处:网络
I want to schedule a task to run in th开发者_Go百科e next iteration of the reactor loop. What\'s the best way to do it?

I want to schedule a task to run in th开发者_Go百科e next iteration of the reactor loop. What's the best way to do it?

reactor.callLater(0, ...)?


You are correct:

reactor.callLater(0, ...)


From the docs, the correct way seems to be as you said, reactor.callLater(0, ...).

0

精彩评论

暂无评论...
验证码 换一张
取 消