ES6ã使ãæ©ä¼ãããããã§ãPromiseã«ã¤ãã¦å ¨ç¶ç¥ããªãã£ãã®ã§ãå®éã«æ¸ããªããåå¼·ãã¦ã¿ãã¨ãã®ã¡ã¢ã ãªãã以ä¸ãåèã«ããã¦é ãã¾ããã 0ããåå¼·ããæã§ãã¨ã¦ãåãããããã£ãã§ãã JavaScript Promiseã®æ¬ ç°å¢ Node.js v4.2.2 Promiseã¨ã¯ éåæå¦çãæä½ã§ãã éåæå¦çã®æåæ(resolve)ã失ææ(reject)ã®å¦çãæ示çã«æ¸ããã¨ãåºæ¥ã éåæå¦çãå¹³è¡ã»ç´åã«å®è¡ããããã¨ãåºæ¥ã ã¨ãããããã£ã¦ã¿ã ã¨ãããããåèã«ããã¦é ãããµã¤ãã®ã³ã¼ããæ¸ãã¦ã¿ã¾ããã function asyncFunction() { // Promiseãªãã¸ã§ã¯ããè¿å´ãã.å¦çæåæã«ã¯resolveãå¼ã°ãã return new Promise(function (resolve, reject) { setTim
{{#tags}}- {{label}}
{{/tags}}