Symbol.asyncIterator is the method that returns an async iterator. for await...of calls this method and awaits each next() promise until done is true.
Symbol.asyncIterator
for await...of
next()
done
Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.