https://pulumi.com logo
#general
Title
# general
r

red-gpu-20097

08/22/2018, 6:54 PM
@elegant-rose-64918 you can merge the logic of phase 2 and 3. if you never expect more than 1000 results, you can just do
getRange({ start: 0, end: 1000 })
, and it will return an array with the exact number of the results if you never expect more than 4000 results, you can do
each(result => { /* do something with result */});
and fill an array with the results