Promise

Promise 객체를 생성하는 생성자

object Promise(function executor);
executorfunction프로미스를 설정하기 위한 콜백 함수
object생성된 프로미스 객체

Example

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

Details

이 객체는 Gantt 라이브러리에 포함된 Bluebird의 Promise 객체 생성자입니다.

Back to top