[Bug 18759] boolean returns from MIDIOutput methods are inappropriately synchronous

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18759

Jussi Kalliokoski <jussi.kalliokoski@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jussi.kalliokoski@gmail.com

--- Comment #1 from Jussi Kalliokoski <jussi.kalliokoski@gmail.com> 2012-09-05 10:00:46 UTC ---
(In reply to comment #0)
> Both sendMIDIMessage and sendMessage "return(s) a boolean signifying whether
> the operation was successful."
> 
> That sounds like this is intended to be a synchronous call, which is a very bad
> idea (since MIDI messages may take a long time to send, on a hardware MIDI port
> for example).  At the very least, this should state "signifying whether the
> message was successfully enqueued."
> 
> At most, we should probably add an onsuccess/onerror callback set to
> setMIDIMessage().

Agreed. The callbacks are something we can add at a later date if there are
some actual use cases for them. I'll remove the notion of returning a boolean.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 5 September 2012 10:02:53 UTC