Skip to content

spec clarification: allow multiple open() and close() requests, and multiple calls to requestMIDIAccess() #128

@toyoshim

Description

@toyoshim

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.

Metadata

Metadata

Labels

Needs Editshttps://speced.github.io/spec-maintenance/about/Priority: Soonhttps://speced.github.io/spec-maintenance/about/category: enhancementhttps://www.w3.org/policies/process/#class-3

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions