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

2014-05-08 Thread Jungkee Song
On May 9, 2014 1:16 PM, "Boris Zbarsky" 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(

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

2014-05-08 Thread Boris Zbarsky
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. -Boris