-
Notifications
You must be signed in to change notification settings - Fork 24
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
WebIDL usage example #15
Comments
@heycam, would you be willing to summarize all the things people should know about using promises in WebIDL? Perhaps briefly here in this issue and I'll transcribe it into longhand for the guide? |
Sorry I overlooked your CC here. These are the important points about how
Let me know if you think anything is missing or if I should change anything. |
Thanks @heycam. It looks like there is some duplication between this guide's "prose shorthands" and WebIDL. I am not sure exactly what is the best thing to do with that. What does the "T" do? If I pass As for |
The Passing |
Yeah, since it runs inside an It sounds like the |
Return values from where? If you have say
and the definition of If you mean something like this:
then it is up to the prose for |
The WebIDL spec is not very clear on the usage of the
Promise<t>
type. After reading the WebIDL spec, I had assumed that I could express both the resolve type and the error type:It would be nice if this doc contained some IDL examples too. And pointed out that there is no way to express what the reject type is going to be in WebIDL. You have to do it in Prose.
The text was updated successfully, but these errors were encountered: