DEV Community

Discussion on: JavaScript Iterators and Generators: Asynchronous Iterators

Collapse
 
eatsjobs profile image
Pasquale Mangialavori

I was thinking pagination could be a use case candidate for async iteration.

const page = await pagination[Symbol.asyncIterator]().next();
Collapse
 
jfet97 profile image
Andrea Simone Costa

Yes of course. I've already briefly mentioned it into the 'The consumer pressure problem' section 😃