본문으로 건너뛰기

프로미스

Description

프라미스 객체 생성자

Promise: new (executor: (resolve: (value?: any) => void, reject: (reason?: any) => void) => void) => Promise<unknown>

Parameters

  • executor - (필수) 함수 - 프라미스 초기화를 위한 콜백

Returns

  • promise - (객체) - 프라미스 객체

Example

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

Details

Bluebird 프라미스 객체 생성자, Gantt 라이브러리에 번들로 포함되어 있습니다.

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.