[Twisted-Python] Updated defer.html

Clark C. Evans cce at clarkevans.com
Mon Mar 10 12:34:48 EST 2003

On Mon, Mar 10, 2003 at 11:41:40AM -0500, Itamar Shtull-Trauring wrote:
| On Mon, 10 Mar 2003 16:17:07 +0000
| "Clark C. Evans" <cce at clarkevans.com> wrote:
| > Ok. I'll re-write to pull threads out.  I was just trying
| > to re-write the code so that it was runnable.  In particular,
| > I was looking for a trivial example of something which would
| > be defered.   Perhaps a small example using reactor.callLater
| > would be a better choice.
| I already did this in CVS. You should probably check the code is
| runnable though, I may have some typos.

Just had to add code to run the reactor, and exit after 4 sec.

BTW, is there anyway to ask the reactor to run it's current 'queue'
and then _stop_ when it's idle.  in other words, I'd like
something like:

   reactor.run(daemon=0)  # only runs currently queued stuff



More information about the Twisted-Python mailing list