-
Notifications
You must be signed in to change notification settings - Fork 142
[css-layout-api] Generator vs. Promise design for the API #750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The Working Group just discussed
The full IRC log of that discussion |
(Note that the resolution was explicitly meant to require discussion, not to shut down the debate and settle on one or the other.) |
A colleague noted the relationship of what's being done conceptually here to coroutines, although I'm not sure if that yields anything useful. (I vaguely recall that Ian might have mentioned that at the face-to-face meeting as well, though I don't see it minuted.) |
Yeah, JS's iterator/yield and async/await are basically one-sided coroutines. |
The Working Group just discussed
The full IRC log of that discussion |
There isn't actually a large difference between the two APIs from just looking at the script, i.e.
There are various pros/cons of each of these.
Generator:
await
on other APIs which might leak into the LWGS.Promise:
The text was updated successfully, but these errors were encountered: