Are there any plans to make IndexedDB and promises play nice?

Currently, wrapping IndexedDB in promises is a perilous task. Pun intended,
since the sticking point seems to be the distinction between microtasks and
macrotasks. See http://stackoverflow.com/q/28388129/786644 for an example.
Basically, it's not clear whether resolving a promise should auto-commit a
transaction or not. Behavior varies across browsers and promise libraries,
and I don't even know what the "correct" behavior actually is.

Although having the IndexedDB API completely redone in promises would be
nice, I understand that may be too big of a change to be feasible. That's
fine. All I really would like is for there to be some way to wrap the
event-based API in promises without things breaking.

So what's the current status of IndexedDB and promises? Is there any hope
that they will work well together in the near future?

--
Jeremy Scheff

Received on Thursday, 16 April 2015 07:44:59 UTC