Promise object constructor
executor | function | a callback used to initialize the promise |
object | the promise object |
new gantt.Promise(function(resolve, reject) {
setTimeout(function(){
resolve();
}, 5000);
}).then(function(){
alert("Resolved")
});
Bluebird Promise object constructor, bundled with the Gantt library.
Back to top