Documentation

all

resolves all promises in the result array

void all(promise promise, [promise morepromises] );

Parameters

promisepromise'promise' object
morepromisespromise'promise' object(s)

Example

a = webix.ajax("someA.php");
b = webix.ajax("someB.php");
c = webix.ajax("someC.php");
 
 
webix.promise.all(a,b,c).then(function(a,b,c){
    ...
});

Details

The function is executed when callbacks have been received from all of the requests for which 'promise' objects have been passed into the function.

Back to top