bufio: preemptive Flush() inside Write*()
methods
#20943
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Hello!
While digging the sources of
bufio.Writer
I had a question:Inside
Writer.ReadFrom()
method exists a "preemptive"Flush()
. I think this is made to deal withsrc.Read()
deadlines in subsequent calls ofReadFrom
– to not spent time on buffer flush before read attempt.Could it be useful to make the same "preemptive" flushes inside other
Writer.Write*()
methods?I mean that in current implementation test like this will fail:
The text was updated successfully, but these errors were encountered: