all

allows to execute a function when results from all promises are received

array all(array promises);
promisesarrayan array of 'promise' objects to resolve
arraya resulting promise

Example

a = webix.ajax("someA.php");
b = webix.ajax("someB.php");
c = webix.ajax("someC.php");
 
 
webix.promise.all([ a,b,c ]).then(function(results){
    var a_result = results[0];
    var b_result = results[1];
    var c_result = results[2];
    // do something
});

Back to top