Search found 2 matches
- Tue Nov 16, 2021 4:07 pm
- Forum: General Discussion and Questions
- Topic: uasyncio StreamReader read question
- Replies: 5
- Views: 2665
Re: uasyncio StreamReader read question
... It's actually a bit surprising that read(1) even works without blocking asyncio, but I'll take what I can get in this case... StreamReader.read() should never block asyncio: the select.poll mechanism is used to ensure that uasyncio tasks continue to be scheduled until data is available. So your...
- Mon Nov 15, 2021 1:34 am
- Forum: General Discussion and Questions
- Topic: uasyncio StreamReader read question
- Replies: 5
- Views: 2665
Re: uasyncio StreamReader read question
I can confirm I see the same behaviour on the RP Pico port. Just spent an hour experimenting to characterize this and attempt to find workarounds. It would be nice if sys.stdin could act like a regular UART, so the USB connection could be treated mostly like a third UART interface, but for now it ap...