Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrected behavior of DexiePromise.finally():
If the onFinally callback returns a promise, wait for it before returning value. And if that promise rejects, return that rejection instead. This all according to spec. Earlier version did just call onFinally() and then return the original value - it did not allow for the onFinally to perform async work before continuing and it did not reject if the onFinally returned rejected promise or threw error.
- Loading branch information