Skip to content

Commit 171204f

Browse files
Merge pull request #277 from mjwilson-google/multiple-open-close
Add explicit notes about allowing multiple calls to promise functions
2 parents 2cf7190 + bf12856 commit 171204f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ <h2>
273273
If the user declines or the call is denied for any other reason,
274274
the Promise is rejected with a {{DOMException}} parameter.
275275
</p>
276+
<p>
277+
Multiple calls to <code>requestMIDIAccess()</code> are
278+
allowed even if not all vended Promises have settled.
279+
</p>
276280
<p data-link-for="Navigator">
277281
When the {{requestMIDIAccess()}} method is called, the user agent
278282
MUST run the following steps:
@@ -699,6 +703,10 @@ <h2 id="MIDIPort">
699703
"MIDIPortDeviceState.connected">"connected"</a> or all references
700704
to it are dropped.
701705
</p>
706+
<p>
707+
Multiple calls to <code>open()</code> are allowed even
708+
if not all vended Promises have settled.
709+
</p>
702710
<p>
703711
When this method is called, the user agent MUST run the
704712
<dfn data-lt="open the port">algorithm to open a MIDIPort</dfn>:
@@ -837,6 +845,10 @@ <h2 id="MIDIPort">
837845
Promise is resolved. If the port is disconnected, the Promise is
838846
rejected.
839847
</p>
848+
<p>
849+
Multiple calls to <code>close()</code> are allowed even
850+
if not all vended Promises have settled.
851+
</p>
840852
<p>
841853
When the <code>close()</code> method is called, the user agent
842854
MUST run the following steps:

0 commit comments

Comments
 (0)