MCPcopy Create free account
hub / github.com/apache/pouchdb / fin

Function fin

lib/index.js:7864–7874  ·  view source on GitHub ↗
(promise, finalPromiseFactory)

Source from the content-addressed store, hash-verified

7862
7863// Promise finally util similar to Q.finally
7864function fin(promise, finalPromiseFactory) {
7865 return promise.then(function (res$$1) {
7866 return finalPromiseFactory().then(function () {
7867 return res$$1;
7868 });
7869 }, function (reason) {
7870 return finalPromiseFactory().then(function () {
7871 throw reason;
7872 });
7873 });
7874}
7875
7876function sequentialize(queue, promiseFactory) {
7877 return function () {

Callers 1

queryPromisedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected