Re: Why do keys() and values() on CacheList in ServiceWorkers not return promises

On May 9, 2014 1:16 PM, "Boris Zbarsky" <bzbarsky@mit.edu> wrote:
>
> In particular, given that get() wants to return a Promise, why do we want
values() to return a list of Cache objects synchronously?
>
> Similar for keys(): if has() needs to be async, then how can has() be
sync.
>

Exactly. both values() and keys() will be changed to async returning
Promises. I'll be working on that part of the ED shortly. It's a bit behind
the discussion going on in this ticket:
https://github.com/slightlyoff/ServiceWorker/issues/226

> -Boris
>

Received on Friday, 9 May 2014 04:35:37 UTC