W3C home > Mailing lists > Public > public-webrtc@w3.org > April 2015

Re: Promises in 1.0

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Tue, 7 Apr 2015 14:46:50 +0200
Message-ID: <CALiegf=8nxuPYXQHrQKV_Ji-VFkM9Z32PXJaKrace4oU_O1d7A@mail.gmail.com>
To: "piranna@gmail.com" <piranna@gmail.com>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
2015-04-07 14:30 GMT+02:00 piranna@gmail.com <piranna@gmail.com>:
> I've develop a function that set a Node.js callback on a Promise,
> maybe they would implement internally something similar (Promises
> first, callbacks as alternative)

That's exactly what I'm not looking for :)

My real concern is: How to detect, from the JS, whether the browser
implements callbacks or promises based WebRTC API? Just let's imagine
that, at some time, browsers remove the callbacks API. I do not want a
JS layer that transforms promises to callbacks or vice-versa ;)

Iñaki Baz Castillo
Received on Tuesday, 7 April 2015 12:47:38 UTC

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