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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.