Re: u8-ready? and char-ready? Marc Feeley 04 Mar 2020 14:55 UTC

> On Mar 4, 2020, at 8:29 AM, Lassi Kortela <xxxxxx@lassi.io> wrote:
>
> More generally, I'm not convinced that it's the best idea to have standard procedures to test for a single port. It's often useful to wait for multiple things at once, and waiting for only one thing can be done as a special case of that.

Indeed… all forms of waiting for availability of I/O including timeouts must be integrated in the thread system.  This usually means funnelling all of this through select/poll on Unix (MsgWaitForMultipleObjects on Windows).  As soon as you make an exception, you need to use polling which is not scalable in general.

Marc