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');

댓글 없음:

댓글 쓰기

eclipse rcp dialog resize

  Dialog 안에 메소드를 만든다. private void autoResize(){     getShell().layout( true, true);     final Point newSize = getShell().computeSize...