W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 09 May 2014 00:14:23 -0400
Message-ID: <536C561F.7070708@mit.edu>
To: public-webapps <public-webapps@w3.org>
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.

Received on Friday, 9 May 2014 04:14:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:24 UTC