Re: [heycam/webidl] Way to mark a method as "async" (#214)

This is already provided by Web IDL. Returning a promise type implicitly transforms any throws to rejections and returns to fulfillments: https://heycam.github.io/webidl/#dfn-create-operation-function step 2. I think it's bad practice to be implicit in this way though.

I think the awaiting construct you describe is not good. It's mixing up two things: in parallel, and promises. You shouldn't be able to await non-promises. If you want to await promises, use https://heycam.github.io/webidl/#dfn-perform-steps-once-promise-is-settled; if you want to wait until things run in parallel, just "Wait, in parallel".

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/214#issuecomment-257200756

Received on Monday, 31 October 2016 02:23:21 UTC