Re: [IndexedDB] Proposal: Queue a microtask to unset active on transaction (#27)

This seems like a safe, web-compatible change; the queued microtask would run after any microtasks enqueued by event handlers, so the microtask for the Promise returned by `getvalue` in @jakearchibald's example would run before the "unset 'active'" microtask.

This would fail, though:

```js
getValue('foo')
  .then(function(val) {
    console.log(val);
    return val;
  })
  .then(function(val) {
    return setValue(val)
  });
```

.... which seems fragile. But that's what proposals like https://gist.github.com/inexorabletash/8c122c84a65de65c35b3 are for.

I need feedback from other implementers and Promise/Microtask-savvy folks though.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/27#issuecomment-129529427

Received on Monday, 10 August 2015 17:13:20 UTC