title: Can a javascript async method return multiple values at different times?
body: <p>I have a list of values that I wanna return asynchronously, but a limited number of values at a time.</p>
  
  <p>So I call my function once and it has an array of say 20 distinct elements say [1,2,...,20], and it keeps on returning 5 elements every second. So I want:
  [1,2,..,5] at 0 sec,
  [6,7,..,10] at 1 sec,
  and so on....</p>
  
  <p>I was thinking on using buffer files. If it is a valid solution, can someone tell me how to implement it for the given example?</p>