On Fri, 2018-07-20 at 10:47 -0400, Andrew Stitcher wrote: > On Fri, 2018-07-20 at 15:44 +0100, Gordon Sim wrote: > > ... > > I believe Kim is using restart() but is debugging some issue where > > the > > task is postponed after it has already fired, which he does not > > want > > (not sure why not). Is that right Kim? > > In that case I think you need to create a new Timer instance. > > IIRC once a one shot timer has elapsed you can't restart it any more > - > I may have got that wrong though as I didn't check the code > thoroughly.
To (try to) clarify further: The Timwer class can be used in two different ways (perhaps these should have actually been different classes, but here we are!): A periodic mode and a one shot mode. restart() is used for the one-shot mode to delay firing; setupNextFiring() is used in the periodic mode to set up the next firing. I don't think you can sensibly use both for the same timer. Caveat, this is from memory, and may be wrong in light of the actual code! Andrew --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
