1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 23:17:46 +00:00
Files
matomo/tests/lib/q-1.4.1/examples/all.js

22 خطوط
306 B
JavaScript
Vendored

"use strict";
var Q = require("../q");
function eventually(value) {
return Q.delay(value, 1000);
}
Q.all([1, 2, 3].map(eventually))
.done(function (result) {
console.log(result);
});
Q.all([
eventually(10),
eventually(20)
])
.spread(function (x, y) {
console.log(x, y);
})
.done();