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

Function Async

static/word2md/mammoth.browser.js:4059–4071  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4057var util = require("./util");
4058
4059function Async() {
4060 this._customScheduler = false;
4061 this._isTickUsed = false;
4062 this._lateQueue = new Queue(16);
4063 this._normalQueue = new Queue(16);
4064 this._haveDrainedQueues = false;
4065 this._trampolineEnabled = true;
4066 var self = this;
4067 this.drainQueues = function () {
4068 self._drainQueues();
4069 };
4070 this._schedule = schedule;
4071}
4072
4073Async.prototype.setScheduler = function(fn) {
4074 var prev = this._schedule;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected