MCPcopy Index your code
hub / github.com/plotly/plotly.js / promiseSerial

Function promiseSerial

test/jasmine/assets/check_transitions.js:12–18  ·  view source on GitHub ↗
(funcs, wait)

Source from the content-addressed store, hash-verified

10var reNumbers = /([\d\.]+)/gm;
11
12function promiseSerial(funcs, wait) {
13 return funcs.reduce(function(promise, func) {
14 return promise.then(function(result) {
15 return func().then(Array.prototype.concat.bind(result)).then(delay(wait));
16 });
17 }, Promise.resolve([]));
18}
19
20function clockTick(currentNow, milliseconds) {
21 Date.now = function() {

Callers 1

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…