[Stackless] How tasklets are scheduled
Stephan Diehl
Stephan.Diehl at gmx.net
Sat Aug 30 17:26:07 CEST 2003
[...]
>
> Not really. You can do so, but it suffices to schedule(),
> or to call stackless.run(), see its doc.
Believe me, I had several looks into the docs, but I can't say that they
really help if you don't know what's happening :-)
>
> > The tasklet is removed from that list, if it calls 'schedule()', i.e.
> that it
> > will only continue to run, if its 'run' method is called again.
>
> All not necessary.
> t=tasklet(func)
> # creates a tasklet.
> t(param1,...)
> # initialized func, and *inserts* the tasklet
> ...
Ahh!!! So, they only safe way to keep a tasklet stopped is to have it
waiting on a channel?
O.K. back to playing around next week.
thanks for your help
Stephan
--
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post
More information about the Stackless
mailing list