This PR adds a NewStream method to csp.Chan and its derivatives. This adds support for flow-controlled streams to channels, which should greatly improve performance for large volumes of concurrent sends.
@mikelsr This is especially relevant to your work on processes, since iostream is implemented using csp.Chan under the hood. Use of csp.SendStream in iostream will be submitted in a separate PR.
(cc @aratz-lasa @evan-schott for general awareness. Code-review & feedback is most welcome.)
This PR adds a
NewStream
method tocsp.Chan
and its derivatives. This adds support for flow-controlled streams to channels, which should greatly improve performance for large volumes of concurrent sends.@mikelsr This is especially relevant to your work on processes, since
iostream
is implemented usingcsp.Chan
under the hood. Use ofcsp.SendStream
iniostream
will be submitted in a separate PR.(cc @aratz-lasa @evan-schott for general awareness. Code-review & feedback is most welcome.)