Promise
Description
Promise object constructor
Promise: (executor: SchedulerCallback) => any
Parameters
executor- (required) function - a callback used to initialize the promise
Returns
promise- (object) - the promise object
Example
new scheduler.Promise(function(resolve, reject) {
setTimeout(function(){
resolve();
}, 5000);
}).then(function(){
alert("Resolved")
});
Details
The Promise object constructor.
Change log
- Added in v6.0.
- Switched from Bluebird to native Promise in v7.0.
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.