JefffHofffman
JefffHofffman
Here's my hack on TerminatedFrameReceiver that extends the sans I/O idea, possible too far. It's similar to the sort/cmp split. Just as single definition of cmp allows lots of sort...
I think I missed a crucial point about sans I/O; it's synchronous. It needs to have no dependence on trio. Here's another attempt at a utility for creating basic protocols....
I came to some of the same conclusions. recv_exact and recv_until work better as distinct calls. Nesting protocols is hard. With `yield from` wrappers, there's a need for boilerplate conversion...