spec clarification: allow multiple open() and close() requests, and multiple calls to requestMIDIAccess() #128
Labels
category: enhancement
https://www.w3.org/policies/process/#class-3
Needs Edits
https://speced.github.io/spec-maintenance/about/
Priority: Soon
https://speced.github.io/spec-maintenance/about/
Milestone
For now the spec say nothing about multiple outstanding open() or close() requests.
But, what happens if open() is called before the previous open() is not resolved?
I feel it's ok to call async function that returns Promise many times before the previous call finishes.
Before JavaScript has the Promise, typical async APIs, e.g., File API, does not allow multiple requests, and the second request will throw InvalidStateError. But we can manage multiple requests with Promise.
The text was updated successfully, but these errors were encountered: