mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-21 08:05:56 +08:00
c23ba31e17
Thread dropdown Small fixes
22 lines
306 B
JavaScript
22 lines
306 B
JavaScript
"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();
|