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

Function cancellationExecute

static/word2md/mammoth.browser.js:4974–4987  ·  view source on GitHub ↗
(executor, resolve, reject)

Source from the content-addressed store, hash-verified

4972};
4973
4974function cancellationExecute(executor, resolve, reject) {
4975 var promise = this;
4976 try {
4977 executor(resolve, reject, function(onCancel) {
4978 if (typeof onCancel !== "function") {
4979 throw new TypeError("onCancel must be a function, got: " +
4980 util.toString(onCancel));
4981 }
4982 promise._attachCancellationCallback(onCancel);
4983 });
4984 } catch (e) {
4985 return e;
4986 }
4987}
4988
4989function cancellationAttachCancellationCallback(onCancel) {
4990 if (!this._isCancellable()) return this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected