Better HN
topnewbestaskshowjobs
Log inSign up

guest124678

4 karma · joined Jan 21, 2019 (7y ago) · 1 submissions

Submissions

comment 7y ago · link · parent

The next step I would have shown if I wrote this article, would have been to tell reader that JS generators as they are now, do not work with async / wait.

As long as you have some simple Fibonacci interview question they look nice to show off, but when you want to use them for real like return some paginated data from server as on going iterator, then current JS generators cannot be used.

This makes js generators limited for any real usage, given JS IO is async.