[Stackless] Question about channels

Stephan Diehl stephan.diehl at gmx.net
Thu Oct 17 10:20:16 CEST 2002


> > As far as I understand channels, they are always blocking, both with
> > reading and writing. Is there a possibility to make the channels
> > nonblocking?
>
> I was thinking of adding a non-blocking version of the
> send/receive calls, but didn't make up my mind to
> implement them, yet.
>
> You can easily simulate it by asking whether the
> channel is waiting for input (ch.balance < 0)
> or output (ch.balance > 0).

Ah, that's what "balance" is for. Makes sense to me :-)

Christian, somehow, I'm missing a bit of documentation. I know that writing 
documentation is a major pain in the a..., but it must be done eventually.
Have you ever thought of installing a Wiki about Stackless? There we could 
all contribute snippets of documentation, example code, etc.
And the good thing for you: you don't have to write the stackless bible (1500 
pages) all by yourself :-)

>
> ciao - chris

Cheers

Stephan



More information about the Stackless mailing list