From 8f6245ff2813c91a97aa715c31a67df79baebc05 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Fri, 3 Jan 2025 10:03:10 -0800 Subject: [PATCH 1/2] Add explicit notes about allowing multiple calls to promise functions --- index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/index.html b/index.html index c3e5655..bb8abb6 100644 --- a/index.html +++ b/index.html @@ -273,6 +273,10 @@

If the user declines or the call is denied for any other reason, the Promise is rejected with a {{DOMException}} parameter.

+

+ Multiple calls to {{requestMIDIAccess()}} are allowed + even if not all vended Promises have settled. +

When the {{requestMIDIAccess()}} method is called, the user agent MUST run the following steps: @@ -698,6 +702,10 @@

"MIDIPortDeviceState.connected">"connected" or all references to it are dropped.

+

+ Multiple calls to open() are allowed even + if not all vended Promises have settled. +

When this method is called, the user agent MUST run the algorithm to open a MIDIPort: @@ -836,6 +844,10 @@

Promise is resolved. If the port is disconnected, the Promise is rejected.

+

+ Multiple calls to close() are allowed even + if not all vended Promises have settled. +

When the close() method is called, the user agent MUST run the following steps: From bf1285670e866cd5a6f40cd704cbf084d92b54c6 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Fri, 3 Jan 2025 10:14:23 -0800 Subject: [PATCH 2/2] Replace broken reference with code block --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index bb8abb6..8e21e36 100644 --- a/index.html +++ b/index.html @@ -274,8 +274,8 @@

the Promise is rejected with a {{DOMException}} parameter.

- Multiple calls to {{requestMIDIAccess()}} are allowed - even if not all vended Promises have settled. + Multiple calls to requestMIDIAccess() are + allowed even if not all vended Promises have settled.

When the {{requestMIDIAccess()}} method is called, the user agent