Message105527
> Adding a call:
>
> scheduler = sched.scheduler(time.time, time.sleep)
> scheduler.enter(10, 1, function, (arg,))
>
> ...vs:
>
> asyncore.call_later(10, function, arg)
I don't really see the difference. How hard it is to build a scheduler
object at startup and store it somewhere in your globals or on one of
your objects?
The main improvement I could see would be to make the arguments to
sched.scheduler() optional, and default to time.time and time.sleep. |
|
Date |
User |
Action |
Args |
2010-05-11 17:08:56 | pitrou | set | recipients:
+ pitrou, gvanrossum, akuchling, facundobatista, jafo, josiahcarlson, tseaver, forest, giampaolo.rodola, kevinwatters, djarb, stutzbach, markb, r.david.murray, intgr, mcdonc, j1m |
2010-05-11 17:08:52 | pitrou | link | issue1641 messages |
2010-05-11 17:08:52 | pitrou | create | |
|