[heycam/webidl] Looking for some clarity on Promise<void> (#737)

In the [description of void](https://heycam.github.io/webidl/#es-void), it’s stated that

> The only place that the void type may appear in IDL is as the return type of an operation.

However when describing the ES binding rules for Promise types, in the algorithm [perform some steps once a promise is settled](https://heycam.github.io/webidl/#dfn-perform-steps-once-promise-is-settled), it says:

> If T [of Promise<T>] is void, then [...]

Is `Promise<void>` is permitted, but only as a return type? If so, should the first text be amended to clarify that, or am I misunderstanding what ‘return type’ is inclusive of?


-- 
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/737

Received on Saturday, 22 June 2019 11:07:35 UTC