- From: Jake Archibald <notifications@github.com>
- Date: Sat, 23 Jan 2016 17:36:46 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Sunday, 24 January 2016 01:37:17 UTC
> If transaction wait for one another, and body streams can be js controlled in the future, do you worry about deadlocks? What would you do to cause a deadlock this way? Deadlocking shouldn't be easy. There's also: ```js caches.open('foo', cache => { return caches.transaction('foo').then(tx => { tx.waitUntil(cache.put(request, response)); }); }); ``` …which would deadlock. That's one of the reasons I put `.transaction` on `caches` rather than `cache`, to make look odd to use a `cache` in a `cacheTransaction`'s `waitUntil`. --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/823#issuecomment-174241152
Received on Sunday, 24 January 2016 01:37:17 UTC