
Aug. 2, 2003
8:37 a.m.
Nicola Larosa <nico@tekNico.net> writes:
Come to think of it, is there a way in Twisted to schedule an event at an absolute time, instead of at a relative one?
Sure. reactor.callLater(desiredTime - time.time(), func) :-). The reactor stores DelayedCalls with absolute times instead of relative ones internally. The callLater API accepts relative times because that's generally the most useful to work with. -Brian