Promise

Promise object constructor

object Promise(function executor);
executorfunctiona callback used to initialize the promise
objectthe promise object

Example

new gantt.Promise(function(resolve, reject) {
    setTimeout(function(){
        resolve();
    }, 5000);
}).then(function(){
    alert("Resolved")
});

Details

Bluebird Promise object constructor, bundled with the Gantt library.

Back to top