[Stackless] Tasklet delays
tins.jeremy at gmail.com
Thu Dec 10 01:40:22 CET 2009
So far I am loving stackless python! I am totally new to it though and was
wondering about having tasklets wait for a certain amount of time.
The problem is:
I would like to have a tasklet wait for 2 seconds before returning to the
scheduling queue, but not delay any other running tasklets.
What I have done:
timeStart = time.time()
while (time.time() < timeStart + 2):
But this way does waste resources every scheduling cycle. Is there a better
way to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Stackless