|
|
|
|
|
by minitech
1233 days ago
|
|
Well, the context is Node.js, and I would definitely use promises over streams for what’s described in the article (albeit more directly). Node streams are complicated with a lot of historical baggage, and massive overkill for waiting on a single value produced by another operation. |
|
[0] https://blog.logrocket.com/comparing-the-stream-api-and-asyn...