However, I agree most of the time it's not used that way. Still, treating everything as a stream has the advantage of making things composable and re-usable.
In any case, I'm not advocating for any approach. I should have made it more clear in the post. Also, you are right, I could have used async/await in the vanilla JavaScript code to make it look cleaner.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It doesn't have to be, it can be a response stream:
However, I agree most of the time it's not used that way. Still, treating everything as a stream has the advantage of making things composable and re-usable.
In any case, I'm not advocating for any approach. I should have made it more clear in the post. Also, you are right, I could have used async/await in the vanilla JavaScript code to make it look cleaner.