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

Function checkCancel

static/word2md/mammoth.browser.js:5896–5907  ·  view source on GitHub ↗
(ctx, reason)

Source from the content-addressed store, hash-verified

5894};
5895
5896function checkCancel(ctx, reason) {
5897 if (ctx.cancelPromise != null) {
5898 if (arguments.length > 1) {
5899 ctx.cancelPromise._reject(reason);
5900 } else {
5901 ctx.cancelPromise._cancel();
5902 }
5903 ctx.cancelPromise = null;
5904 return true;
5905 }
5906 return false;
5907}
5908
5909function succeed() {
5910 return finallyHandler.call(this, this.promise._target()._settledValue());

Callers 3

mammoth.browser.jsFile · 0.70
failFunction · 0.70
finallyHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected