W3C home > Mailing lists > Public > public-webrtc@w3.org > June 2013

Re: Operations in invalid states: Exceptions don't make sense.

From: Jan-Ivar Bruaroey <jib@mozilla.com>
Date: Wed, 19 Jun 2013 12:28:43 -0400
Message-ID: <51C1DC3B.4080804@mozilla.com>
To: public-webrtc@w3.org
On 6/19/13 2:47 AM, Adam Bergkvist wrote:
> With a processing state, the second call would always fail.

Agreed.

> That's deterministic and observable from JS (compared to a queue in 
> the background).

The current approach is also deterministic, as I showed.
The current approach is also observable from JS because the failure 
callback is called. In fact with Futures/Promises, there's little 
difference.

.: Jan-Ivar :.
Received on Wednesday, 19 June 2013 16:29:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:33 UTC