Message149453
> while 1:
> asyncore.loop(timeout=1.0, count=1) # count=1 makes loop() return after 1 loop
> scheduler.run(blocking=False)
Isn't that both ugly and imprecise?
The right way to do it is to set the timeout of the select() call
according to the deadline of the next scheduled call in the scheduler.
But you probably need to modify asyncore for that. |
|
Date |
User |
Action |
Args |
2011-12-14 14:33:28 | pitrou | set | recipients:
+ pitrou, gvanrossum, akuchling, facundobatista, jafo, josiahcarlson, tseaver, mark.dickinson, forest, giampaolo.rodola, kevinwatters, djarb, stutzbach, markb, r.david.murray, intgr, mcdonc, j1m |
2011-12-14 14:33:27 | pitrou | link | issue1641 messages |
2011-12-14 14:33:27 | pitrou | create | |
|