News for hackers. Stuff that matters.
Re:Why Would Anyone Need JavaScript Generator Functions? by bakkoting on Monday November 07, 2022 @06:09PM (#33513835)
Babel does this, using a library called gensync. I have a writeup which goes into more detail: https://writing.bakkot.com/gensync

gensync instead creates two functions, one sync and one async, which is probably a more familiar API for consumers of your code.

There are no comments on this comment yet.