MCPcopy Create free account
hub / github.com/TruthHun/BookStack / castPreservingDisposable

Function castPreservingDisposable

static/word2md/mammoth.browser.js:8979–8988  ·  view source on GitHub ↗
(thenable)

Source from the content-addressed store, hash-verified

8977 }
8978
8979 function castPreservingDisposable(thenable) {
8980 var maybePromise = tryConvertToPromise(thenable);
8981 if (maybePromise !== thenable &&
8982 typeof thenable._isDisposable === "function" &&
8983 typeof thenable._getDisposer === "function" &&
8984 thenable._isDisposable()) {
8985 maybePromise._setDisposable(thenable._getDisposer());
8986 }
8987 return maybePromise;
8988 }
8989 function dispose(resources, inspection) {
8990 var i = 0;
8991 var len = resources.length;

Callers 1

iteratorFunction · 0.70

Calls 1

tryConvertToPromiseFunction · 0.70

Tested by

no test coverage detected