Hi
I am trying to loop over a dataset using a loop that would work with an iterator. The loop gets stuck because because the next() does not seem to increment the iterator … Am I missing something ?
Thanks.
// data is a dataset
while(data.hasNext()) {
data.next().then( res => { // the next() does not increment the iterator …
// and the loop gets stuck here forever ...
});
}