ç¾å¨éç¨ä¸ã®ããã¸ã§ã¯ãã®Nodeã®ãã¼ã¸ã§ã³ã7ãã8ã«ãããã®ã§Promiseã§æ¸ãã¦ããç®æãå¾ã ã«async/awaitã«ç½®ãæãã¦ãã¾ãã ç°¡åã«æ¸ããä¸æ¹ã§Promsieã«æ £ãããã¦ãããããããã並åå¦çã«ãªããã ã£ããã¨ãããã¦ããããåãï¼ãè¦ãããªã¬ãã«ã§æã«ãªãã¾ãªãã£ãã®ã§è²ã ãããã¦é¦´æããã¨æãã¾ãã å©ç¨ããã¿ã¤ãã¼é¢æ° function timer(ms, name) { console.log(`name: ${name} start!`) return new Promise((resolve, reject) => { setTimeout(() => resolve(name), ms) }) } Case.1 awaitãæ¸ãã¦éåæå¦çã®é¢æ°ã並ã¹ã¦æ¸ã (async () => { const result1 = await timer(100
{{#tags}}- {{label}}
{{/tags}}