cron-parser icon indicating copy to clipboard operation
cron-parser copied to clipboard

suggestion for iterator example

Open choehn-signogy opened this issue 1 year ago • 0 comments

Just a thought. Instead of while(true) inside the example for 'Iteration with limited timespan' you could use while(iterator.hasNext()) imho this would give you a clean exit condition instead of relying on an exception:

while(iterator.hasNext()) { var obj = interval.next(); console.log('value:', obj.value.toString(), 'done:', obj.done); }

cheers

choehn-signogy avatar Apr 28 '23 11:04 choehn-signogy