11kkw
11kkw
I believe the peek functionality, which allows non-destructive data inspection, is useful and I’d like to implement it. I have a few considerations regarding this. I'm wondering which approach would...
Following up on the earlier discussion regarding non-destructive reads — I’ve been exploring the idea of adding a `peek()` method to the stream classes, and I’d really appreciate your thoughts...
> I had intended for such functionality to be non-blocking. That is, to return any data that is immediately available, but not waiting for more to arrive. So basically, `receive_nowait()`...
> The `receive_nowait()`, already present in memory object streams, is synchronous and raises `WouldBlock` if there is no data to return. > > These two methods have so much in...