W3C home > Mailing lists > Public > public-web-perf@w3.org > February 2014

Re: [Navigation Error Logging] Use promises instead of callbacks?

From: Jake Archibald <jakearchibald@chromium.org>
Date: Tue, 11 Feb 2014 10:24:42 +0000
Message-ID: <CAPy=JorNtkhgw1uwKUhjvTpDg7QOeSZnY_Fwj44mmSrhM80PLg@mail.gmail.com>
To: Arvind Jain <arvind@google.com>
Cc: ttuttle <ttuttle@chromium.org>, public-web-perf <public-web-perf@w3.org>, Domenic Denicola <domenic@domenicdenicola.com>
+1

Any async success (and optionally, failure) API should use promises.


On Tue, Feb 11, 2014 at 6:40 AM, Arvind Jain <arvind@google.com> wrote:

> Does anyone else have an opinion? Should I go ahead and change
> getNavigationErrors to return a promise?
>
> https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationErrorLogging/Overview.html
>
>
> On Tue, Feb 4, 2014 at 2:35 PM, ttuttle <ttuttle@chromium.org> wrote:
>
>> Hi,
>>
>> At Domenic Denicola's suggestion, can we have getNavigationErrors
>> return a promise instead of a callback?  It should fail if the site
>> has never registered for error logging.
>>
>> Thanks,
>>
>> ttuttle
>>
>
>
Received on Tuesday, 11 February 2014 10:25:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:38 UTC