Re: Futures in WebRTC

On 2013-05-28 11:35, Anne van Kesteren wrote:
> I was asked to email a brief overview here in preparation of the call next week.

Thanks for providing this!

>
> == Introduction ==
>
> A future basically represents a value that may not yet have been
> computed. Since we lacked that concept thus far we've been emulating
> it with events (ondone/onerror) and callbacks (successCallback,
> failureCallback) in a somewhat mixed and adhoc fashion.
>
> Also, by making this a new type we can do interesting things with that
> type such as grouping. See http://dom.spec.whatwg.org/#futures for
> more information.
>
> == Revised WebRTC IDL ==
>
> For the current features of WebRTC this would mean the IDL comes to
> look like this (I grouped the features from various drafts together
> here):
>
> * Future takePhoto();
> * Future getUserMedia(optional MediaStreamConstraints constraints);

The use of the above futures is exemplified in: 
http://lists.w3.org/Archives/Public/public-media-capture/2013Apr/0053.html

Received on Tuesday, 28 May 2013 10:52:39 UTC