Earlier quoted context omitted.
If you return something whose body is a stream you still have to construct that thing, including the stream. And if you return something whose body is a stream you didn't fill in yet, you need to create entire async thunks or threads to fill that data in. You have also gained ~nothing.
> There are major performance advantages You didn't outline the performance advantage. You've got "you need to create entire async thunks or threads to fill that data in", but that absolutely isn't true. Let's look at how we might stream a file in response in go with the current model vs this new model, and you can point out where the performance difference is: // current func responseHandler(rw http.ResponseWriter,…
Or heck, just try adding some error handling from the `io.Copy` result to what you have.