Promise

Promise object constructor

void Promise();

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