[Twisted-Python] StepReactor?
Andrew Bennetts
andrew-twisted at puzzling.org
Thu Jul 31 01:14:06 MDT 2003
On Thu, Jul 31, 2003 at 08:53:01AM +0200, Nicola Larosa wrote:
> What about a StepReactor?
>
> It would be great to be able to stop time, have a means to look at the event
> queue and to say "DispatchNextEvent" by hand. Or even better,
> "PushTimeForward(x)" and see what happens. In short, a simulator.
>
> This assuming, of course, that all other parts of the system are pausable,
> be they internal or external.
Is reactor.iterate[1] sufficient for this?
-Andrew.
[1] http://twistedmatrix.com/documents/api/public/twisted.internet.interfaces.IReactorCore.html#iterate
More information about the Twisted-Python
mailing list