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

Function afterTimeout

static/word2md/mammoth.browser.js:8909–8927  ·  view source on GitHub ↗
(promise, message, parent)

Source from the content-addressed store, hash-verified

8907};
8908
8909var afterTimeout = function (promise, message, parent) {
8910 var err;
8911 if (typeof message !== "string") {
8912 if (message instanceof Error) {
8913 err = message;
8914 } else {
8915 err = new TimeoutError("operation timed out");
8916 }
8917 } else {
8918 err = new TimeoutError(message);
8919 }
8920 util.markAsOriginatingFromRejection(err);
8921 promise._attachExtraTrace(err);
8922 promise._reject(err);
8923
8924 if (parent != null) {
8925 parent.cancel();
8926 }
8927};
8928
8929function successClear(value) {
8930 clearTimeout(this.handle);

Callers 1

mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected