js-promise-integration
js-promise-integration copied to clipboard
Draft of new explainer with revised API
The API has been revised according to discussions in stack sub-group; and the explanations have been updated to reflect the changes: No mention of Suspender object
A quick comment on the API itself: I think it would make more sense to have a single WebAssembly.Suspending(Function) constructor, rather than WebAssembly.suspending(Function) returning a WebAssembly.Suspending.
- It's more consistent with other wasm APIs (
WA.Table,WA.Memory, ...), - It's less confusing (IMHO)
WebAssembly.Suspendingis essentially useless if it's not a constructor, e.g. you cannot doinstanceof WebAssembly.Suspending, and the observable interface is empty
Sorry for bringing a discussion about the API itself during code review, but hopefully this is a small and non-controversial change.
Good suggestion. And this is the right place to raise a comment like this