2016년 2월 17일 수요일

Async Javascript Promise Example

Promise A

Promise is a Pattern.

Javascript is Single Thread. if script code run blocking code,,script wait until blocking code finished.

we execute asynchronous program,we can do other things.

var callbackId = 0;

function getSystemInfo(callback) {
  document.location = "of://SystemInfo.getSystemInfo/"+callbackId+"/";
}

Native Success

OF.callbackSuccess('callbackId','datafewfwfewfwe');

댓글 없음:

댓글 쓰기

3gb minning

비트코인 골드 -- 마이너 다운로드 :  https://www.bminercontent.com/releases/bminer-v6.0.0-d111154-amd64.zip -- vcruntime140.dll 다운로드  https://www.micr...