resolve

creates and resolves a promise with the specified value

void resolve(any value);
valueanythe value to resolve the promise with

Example

webix.promise.resolve("Correct value").then(function(success){
   console.log(success); //"Correct value"
});

Back to top