[Twisted-Python] reactor.callLater question
Antoine Pitrou
solipsis at pitrou.net
Tue Nov 15 10:15:15 EST 2011
On Tue, 15 Nov 2011 14:57:17 -0000
exarkun at twistedmatrix.com wrote:
> >b)
> >reactor.callLater(T, fun1)
> >reactor.callLater(T, fun2)
> >
> >Is the call _order_ first fun1, then fun2 _guaranteed_?
> >For every T, and in particular T == 0?
>
> This isn't guaranteed. It's been proposed that it should be, but the
> ticket has been languishing for a few years now:
>
> http://twistedmatrix.com/trac/ticket/1396
For the record, clock_gettime() will be available in Python 3.3:
>>> time.clock_gettime(time.CLOCK_REALTIME)
1321369967.1877146
>>> time.clock_gettime(time.CLOCK_MONOTONIC)
8488.233418624
Regards
Antoine.
More information about the Twisted-Python
mailing list