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

Function MappingPromiseArray

static/word2md/mammoth.browser.js:6391–6403  ·  view source on GitHub ↗
(promises, fn, limit, _filter)

Source from the content-addressed store, hash-verified

6389var async = Promise._async;
6390
6391function MappingPromiseArray(promises, fn, limit, _filter) {
6392 this.constructor$(promises);
6393 this._promise._captureStackTrace();
6394 var domain = getDomain();
6395 this._callback = domain === null ? fn : util.domainBind(domain, fn);
6396 this._preservedValues = _filter === INTERNAL
6397 ? new Array(this.length())
6398 : null;
6399 this._limit = limit;
6400 this._inFlight = 0;
6401 this._queue = [];
6402 async.invoke(this._asyncInit, this, undefined);
6403}
6404util.inherits(MappingPromiseArray, PromiseArray);
6405
6406MappingPromiseArray.prototype._asyncInit = function() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected