all
allows to execute a function when results from all promises are received
array all(array promises);
| promises | array | an array of 'promise' objects to resolve |
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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.