What if I want to keep on generating a stream of requests and continuously fetch responses?

I came across the Promise.all solution, but this implies that my array is finite in size. What if I want to keep on generating a stream of requests and continuously fetch responses?
You already invited:

john woods

Upvotes from: Sokowatch

implement a queue of some sort perhaps? you can run however many you want simultaneously and just loop for new entries in the queue.

If you wanna answer this question please Login or Register