[Twisted-Python] Questions about twisted.python.delay.Delayed

Moshe Zadka m at moshez.org
Sun Sep 30 14:31:51 EDT 2001


On Sun, 30 Sep 2001, Matt Campbell <mattcampbell at pobox.com> wrote:

> 1.  Why does Delayed measure time in units of five-second ticks by
> default?

Why does it matter? In general, I create my own, 1-second-tick,
delayeds.

> 3.  What is the recommended way to specify, for example, that a function
> should be called approximately 30 seconds from now?  Should I pass 6 as
> the number of ticks to Delayed.later(), or is there a better way to do it?

Depends on the tick time. main.theTimeouts's ticktime is 1.
-- 
The Official Moshe Zadka FAQ: http://moshez.geek
The Official Moshe Zadka FAQ For Dummies: http://moshez.org
Read the FAQ





More information about the Twisted-Python mailing list