[Stackless] non-blocking IO in uthreads

Gordon McMillan gmcm at hypernet.com
Fri Feb 9 19:24:33 CET 2001


Bernd Rinn wrote:
> 
> since I have just started with stackless-python and microthreads,
> my questions are pretty basic:
> 
> * I there a module for doing non-blocking IO in uthreads?
> 
> * If not, do you know a better way to do it than the following:

[snip select code]

There's mcmillan-inc.com/selectdispatcher.html. No uthreads, 
but it uses continuations to turn a select loop inside out (and if 
you have non-socket related things you want to do, you can 
add them as idletasks to the selectdispatcher).

- Gordon
_______________________________________________
Stackless mailing list
Stackless at starship.python.net
http://starship.python.net/mailman/listinfo/stackless



More information about the Stackless mailing list