Re: Web Bluetooth hybrid API

On Thu, Sep 24, 2015 at 11:56 AM, Rob Moran <Rob.Moran@arm.com> wrote:
> We were wondering if a hybrid approach was considered when defining the
> specification which allows the choice of using promises (if available) or a
> callback with an error object.

This does not seem the correct list for Web Bluetooth. Having said
that, if the only difference is style, promises are most definitely to
be used over callbacks for JavaScript APIs. I don't really have a
pointer at hand, but that's the practice we follow for any new API.


-- 
https://annevankesteren.nl/

Received on Thursday, 24 September 2015 13:06:04 UTC