{"id":884,"date":"2026-05-20T09:51:55","date_gmt":"2026-05-20T01:51:55","guid":{"rendered":"https:\/\/junai.ai\/blog\/nodejs-callback-promise-async-9\/"},"modified":"2026-05-20T09:51:55","modified_gmt":"2026-05-20T01:51:55","slug":"nodejs-callback-promise-async-9","status":"publish","type":"post","link":"https:\/\/junai.ai\/blog\/nodejs-callback-promise-async-9\/","title":{"rendered":"\ube44\ub3d9\uae30 \ud328\ud134 \u2014 \ucf5c\ubc31\u00b7Promise\u00b7async\/await"},"content":{"rendered":"\n<!-- WordPress REST API \ubc1c\ud589\uc6a9 HTML (\uc790\ub3d9 \uc0dd\uc131) -->\n<!-- WP-FEATURED-MEDIA-ID: 830 -->\n<div style=\"max-width:800px;margin:0 auto;\">\n<style>\n:root {--color-primary:#059669;--color-accent:#10b981;--color-bg:#fafbfc;--color-bg-card:#fff;--color-text:#1a202c;--color-text-muted:#64748b;--hero-start:#064e3b;--hero-end:#059669;}\n*{box-sizing:border-box;}\n.container{max-width:760px;margin:0 auto;padding:0 24px 80px;}\n.hero{background:linear-gradient(135deg,var(--hero-start) 0%,var(--hero-end) 100%);color:#fff;padding:80px 24px 60px;text-align:center;}\n.hero .eyebrow{display:inline-block;font-size:14px;color:#6ee7b7;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;margin-bottom:14px;}\n.hero h1{font-size:36px;margin:0 0 16px;line-height:1.3;font-weight:800;}\n.hero p{color:#d1fae5;font-size:18px;max-width:640px;margin:0 auto;line-height:1.6;}\n.hero img{width:100%;max-width:640px;height:auto;margin:32px auto 0;border-radius:10px;display:block;}\narticle{padding-top:48px;}\narticle h2{font-size:26px;margin:56px 0 20px;padding-left:14px;border-left:5px solid var(--color-accent);line-height:1.4;}\narticle h3{font-size:19px;margin:32px 0 12px;color:var(--color-primary);}\narticle p{margin:16px 0;}\narticle strong{color:var(--color-primary);font-weight:700;}\narticle code{background:#d1fae5;padding:2px 8px;border-radius:4px;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;color:#065f46;}\n.databox{background:#d1fae5;border-left:4px solid var(--color-accent);padding:16px 20px;margin:24px 0;border-radius:0 8px 8px 0;font-size:15.5px;}\n.databox strong{color:var(--color-primary);}\n.warnbox{background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);padding:16px 20px;margin:24px 0;border-radius:8px;font-size:15.5px;}\n.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:22px 0;}\ntable{width:100%;border-collapse:collapse;font-size:15px;background:var(--color-bg-card);}\nth,td{padding:11px 12px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top;}\nth{background:#f1f5f9;font-weight:700;color:#0f172a;}\ntd:first-child,th:first-child{font-weight:700;}\n@media (max-width:560px){.tablewrap table,.tablewrap thead,.tablewrap tbody,.tablewrap tr,.tablewrap th,.tablewrap td{display:block;width:auto;}.tablewrap thead{display:none;}.tablewrap tr{margin:0 0 14px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;}.tablewrap td{border:none;border-bottom:1px solid #f1f5f9;padding:9px 14px;}.tablewrap td:first-child{background:#f1f5f9;font-weight:800;font-size:15.5px;}.tablewrap td:last-child{border-bottom:none;}.tablewrap td[data-label]::before{content:attr(data-label) \" \u2014 \";font-weight:700;color:var(--color-primary);}}\n.code-block{background:#0f172a;color:#e2e8f0;padding:16px 20px;border-radius:8px;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;line-height:1.6;margin:20px 0;overflow-x:auto;white-space:pre;}\n.cta{background:linear-gradient(135deg,#059669 0%,#10b981 100%);color:#fff;padding:28px 24px;border-radius:12px;margin:48px 0 0;text-align:center;}\n.cta h3{color:#fff;margin:0 0 8px;font-size:20px;}\n.cta p{color:#d1fae5;margin:0;font-size:15.5px;}\n.footer-nav{margin-top:32px;padding-top:20px;border-top:1px solid #e2e8f0;font-size:14px;color:var(--color-text-muted);}\n.footer-nav a{color:var(--color-primary);text-decoration:none;}\n@media (max-width:480px){.hero h1{font-size:26px;}.hero p{font-size:16px;}article h2{font-size:21px;}article h3{font-size:17px;}body{font-size:16px;}}\n<\/style>\n<section class=\"hero\">\n  <span class=\"eyebrow\">Node.js \uad50\uc7ac \u00b7 9\ud3b8 \u00b7 \ube44\ub3d9\uae30 \uc9c4\ud654\uc0ac<\/span>\n  <h1>\ube44\ub3d9\uae30 \ud328\ud134 \u2014 \ucf5c\ubc31\u00b7Promise\u00b7async\/await<\/h1>\n  <p>\uac19\uc740 \ubb38\uc81c, \uc138 \uc2dc\ub300\uc758 \ub2f5. \uc14b \ub2e4 \ub9cc\ub098\ub2c8\uae4c \uc14b \ub2e4 \uc77d\uc5b4\uc57c \ud55c\ub2e4.<\/p>\n  <img decoding=\"async\" src=\"https:\/\/junai.ai\/blog\/wp-content\/uploads\/2026\/05\/hero-5-63.jpg\" alt=\"\ucf5c\ubc31 \uc911\ucca9\uc774 Promise \uccb4\uc778\uc73c\ub85c, \ub2e4\uc2dc async\/await \uc73c\ub85c \uc815\ub9ac\ub418\ub294 \ucee8\uc149 \uc77c\ub7ec\uc2a4\ud2b8\">\n<\/section>\n\n<div class=\"container\">\n<article>\n\n<p>8\ud3b8\uc5d0\uc11c \ubcf8 \uc774\ubca4\ud2b8 \ub8e8\ud504\uc758 \uacb0\uacfc \u2014 Node \uc758 \uac70\uc758 \ubaa8\ub4e0 \ud568\uc218\uac00 \ube44\ub3d9\uae30\ub2e4. \uadf8 \ube44\ub3d9\uae30 \uacb0\uacfc\ub97c \ubc1b\ub294 \ubc29\ubc95\uc774 \uc2dc\uac04\uc774 \uc9c0\ub098\uba70 \uc9c4\ud654\ud588\ub2e4. <strong>\ucf5c\ubc31 \u2192 Promise \u2192 async\/await<\/strong>. \uc2e0\uaddc \ucf54\ub4dc\ub294 \ubaa8\ub450 async\/await \uc774\uc9c0\ub9cc, \uc61b \ub77c\uc774\ube0c\ub7ec\ub9ac\u00b7\uc608\uc81c\u00b7StackOverflow \ub2f5\ubcc0\uc5d4 \ucf5c\ubc31\u00b7Promise \uac00 \uadf8\ub300\ub85c \uc0b4\uc544\uc788\ub2e4. \uc14b \ub2e4 \uc77d\uc744 \uc904 \uc54c\uc544\uc57c \ud55c\ub2e4.<\/p>\n\n<p>\uc774\ubc88 \ud3b8\uc5d0\uc11c \uc138 \ud328\ud134\uc744 \uac19\uc740 \uc608\uc81c\ub85c \ube44\uad50\ud558\uace0, \ubcc0\ud658 \ubc29\ubc95\uacfc \uc2e4\uc804 \ud568\uc815\uae4c\uc9c0 \uc815\ub9ac\ud55c\ub2e4.<\/p>\n\n<h2>1. 1\uc138\ub300 \u2014 \ucf5c\ubc31 (Callback)<\/h2>\n\n<p>Node \uac00 \ucc98\uc74c \uc815\ud55c \uaddc\uc57d \u2014 <strong>error-first callback<\/strong>. \ud568\uc218\uc758 \ub9c8\uc9c0\ub9c9 \uc778\uc790\ub294 \ucf5c\ubc31, \ucf5c\ubc31\uc758 \uccab \uc778\uc790\ub294 \uc5d0\ub7ec(\uc5c6\uc73c\uba74 null), \ub450 \ubc88\uc9f8\uac00 \uacb0\uacfc.<\/p>\n\n<div class=\"code-block\">import fs from &#8216;node:fs&#8217;;\n\nfs.readFile(&#8216;a.txt&#8217;, &#8216;utf-8&#8217;, (err, dataA) =&gt; {\n  if (err) return console.error(err);\n  fs.readFile(&#8216;b.txt&#8217;, &#8216;utf-8&#8217;, (err, dataB) =&gt; {\n    if (err) return console.error(err);\n    fs.writeFile(&#8216;out.txt&#8217;, dataA + dataB, (err) =&gt; {\n      if (err) return console.error(err);\n      console.log(&#8216;\ud569\ucce4\uc5b4\uc694&#8217;);\n    });\n  });\n});<\/div>\n\n<p>\uc138 \uc791\uc5c5\uc774 \uc21c\ucc28\ub85c \uc77c\uc5b4\ub098\uc57c \ud558\ub2c8\uae4c \ucf5c\ubc31\uc774 \ucf5c\ubc31\uc744 \ubd80\ub974\uace0 \ub610 \ubd80\ub978\ub2e4. \uc774\uac78 &#8220;<strong>\ucf5c\ubc31 \ud5ec<\/strong>&#8221; \ub610\ub294 &#8220;<strong>\ud53c\ub77c\ubbf8\ub4dc \uc624\ube0c \ub460<\/strong>&#8221; \uc774\ub77c \ubd80\ub978\ub2e4. \ud55c\ub450 \ub2e8\uacc4\ub294 \uad1c\ucc2e\uc9c0\ub9cc 5\ub2e8\uacc4 \ub118\uc5b4\uac00\uba74 \ub514\ubc84\uae45 \ubd88\uac00. \uc774\uac78 \ud480\uae30 \uc704\ud574 Promise \uac00 \ub4f1\uc7a5.<\/p>\n\n<h2>2. 2\uc138\ub300 \u2014 Promise<\/h2>\n\n<p>ES2015 \uc758 \ub2f5. \ube44\ub3d9\uae30 \uacb0\uacfc\ub97c \ub2f4\ub294 <strong>\uac1d\uccb4<\/strong>. <code>.then()<\/code> \uc73c\ub85c \uacb0\uacfc\ub97c, <code>.catch()<\/code> \ub85c \uc5d0\ub7ec\ub97c \ubc1b\ub294\ub2e4.<\/p>\n\n<div class=\"code-block\">import fs from &#8216;node:fs\/promises&#8217;;\n\nfs.readFile(&#8216;a.txt&#8217;, &#8216;utf-8&#8217;)\n  .then(dataA =&gt;\n    fs.readFile(&#8216;b.txt&#8217;, &#8216;utf-8&#8217;).then(dataB =&gt; dataA + dataB))\n  .then(merged =&gt; fs.writeFile(&#8216;out.txt&#8217;, merged))\n  .then(() =&gt; console.log(&#8216;\ud569\ucce4\uc5b4\uc694&#8217;))\n  .catch(err =&gt; console.error(err));<\/div>\n\n<p>\uc774\ubbf8 \ucf5c\ubc31\ubcf4\ub2e4 \ud3c9\ud3c9\ud558\ub2e4. \uc5d0\ub7ec \ucc98\ub9ac\ub3c4 \ub9c8\uc9c0\ub9c9 <code>.catch<\/code> \ud55c \uad70\ub370. \uadf8\ub7ec\ub098 <code>.then<\/code> \uc548\uc5d0\uc11c \ub2e4\uc2dc \ube44\ub3d9\uae30\ub97c \ubd80\ub974\uba74 \uc5ec\uc804\ud788 \ub4e4\uc5ec\uc4f0\uae30\uac00 \uae4a\uc5b4\uc9c0\uae34 \ud55c\ub2e4.<\/p>\n\n<div class=\"databox\">\n<strong>Promise \uc758 3\uac00\uc9c0 \uc0c1\ud0dc<\/strong> \u2014 pending (\ub300\uae30) \u2192 fulfilled (\uc131\uacf5, \uac12 \uc788\uc74c) \ub610\ub294 rejected (\uc2e4\ud328, \uc5d0\ub7ec \uc788\uc74c). \ud55c \ubc88 \uc0c1\ud0dc\uac00 \uc815\ud574\uc9c0\uba74 \ubcc0\ud558\uc9c0 \uc54a\uc74c. \uac19\uc740 promise \uc5d0 <code>.then<\/code> \uc744 \uc5ec\ub7ec \ubc88 \ubd99\uc5ec\ub3c4 \uacb0\uacfc\ub294 \uac19\ub2e4 (\ud55c \ubc88\ub9cc \uc2e4\ud589\ub428).\n<\/div>\n\n<h2>3. 3\uc138\ub300 \u2014 async \/ await<\/h2>\n\n<p>ES2017 \uc758 \ub2f5. Promise \ub97c \ub354 \uc790\uc5f0\uc2a4\ub7fd\uac8c \uc4f0\ub294 <strong>\ubb38\ubc95 \uc124\ud0d5<\/strong>. <code>await<\/code> \ud0a4\uc6cc\ub4dc\uac00 Promise \uc758 \uacb0\uacfc \uac12\uc744 &#8220;\uae30\ub2e4\ub824\uc11c&#8221; \ubcc0\uc218\uc5d0 \ub123\uc5b4\uc900\ub2e4.<\/p>\n\n<div class=\"code-block\">import fs from &#8216;node:fs\/promises&#8217;;\n\ntry {\n  const dataA = await fs.readFile(&#8216;a.txt&#8217;, &#8216;utf-8&#8217;);\n  const dataB = await fs.readFile(&#8216;b.txt&#8217;, &#8216;utf-8&#8217;);\n  await fs.writeFile(&#8216;out.txt&#8217;, dataA + dataB);\n  console.log(&#8216;\ud569\ucce4\uc5b4\uc694&#8217;);\n} catch (err) {\n  console.error(err);\n}<\/div>\n\n<p>\ub9c8\uce58 \ub3d9\uae30 \ucf54\ub4dc\ucc98\ub7fc \uc77d\ud78c\ub2e4. \uc5d0\ub7ec \ucc98\ub9ac\ub294 \uc775\uc219\ud55c <code>try\/catch<\/code>. <strong>\uc774\uac8c 2026 \ud45c\uc900<\/strong>. \uc2e0\uaddc \ucf54\ub4dc\ub294 \ubb34\uc870\uac74 \uc774 \ud328\ud134.<\/p>\n\n<p>Node 14.8 \ubd80\ud130 \ubaa8\ub4c8 \ucd5c\uc0c1\uc704\uc5d0\uc11c\ub3c4 <code>await<\/code> \uac00\ub2a5 (top-level await, ESM \ud55c\uc815). \uc61b \ucf54\ub4dc\uc5d0\uc120 <code>async function main() { \u2026 } main()<\/code> \uc73c\ub85c \uac10\uc2f8\uc57c \ud588\uc9c0\ub9cc \uc774\uc81c \uc548 \ud574\ub3c4 \ub428.<\/p>\n\n<h2>4. \uc138 \uc2dc\ub300 \ud55c\ub208\uc5d0 \ube44\uad50<\/h2>\n\n<div class=\"tablewrap\">\n<table>\n<thead><tr><th>\uad6c\ubd84<\/th><th>\ucf5c\ubc31<\/th><th>Promise<\/th><th>async\/await<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\ub4f1\uc7a5<\/td><td data-label=\"\ucf5c\ubc31\">Node \uc2dc\uc791 (2009)<\/td><td data-label=\"Promise\">ES2015<\/td><td data-label=\"async\">ES2017<\/td><\/tr>\n<tr><td>\ubaa8\uc591<\/td><td data-label=\"\ucf5c\ubc31\">\uc911\ucca9 \ud568\uc218<\/td><td data-label=\"Promise\"><code>.then().then()<\/code><\/td><td data-label=\"async\">\ub3d9\uae30\ucc98\ub7fc<\/td><\/tr>\n<tr><td>\uc5d0\ub7ec \ucc98\ub9ac<\/td><td data-label=\"\ucf5c\ubc31\">\ub9e4 \ucf5c\ubc31 \uccab \uc778\uc790<\/td><td data-label=\"Promise\"><code>.catch()<\/code><\/td><td data-label=\"async\"><code>try\/catch<\/code><\/td><\/tr>\n<tr><td>\uac00\ub3c5\uc131<\/td><td data-label=\"\ucf5c\ubc31\">3\ub2e8\uacc4+ \uace4\ub780<\/td><td data-label=\"Promise\">\ud3c9\ud3c9\ud558\uc9c0\ub9cc chain<\/td><td data-label=\"async\">\ucd5c\uc0c1<\/td><\/tr>\n<tr><td>\ubcd1\ub82c \ucc98\ub9ac<\/td><td data-label=\"\ucf5c\ubc31\">\uc218\ub3d9 \uce74\uc6b4\ud130<\/td><td data-label=\"Promise\"><code>Promise.all<\/code><\/td><td data-label=\"async\"><code>await Promise.all<\/code><\/td><\/tr>\n<tr><td>\ud604\uc7ac \uad8c\uc7a5<\/td><td data-label=\"\ucf5c\ubc31\">\uc61b \ucf54\ub4dc\ub9cc<\/td><td data-label=\"Promise\">\ubc18\ud658 \uc2dc OK<\/td><td data-label=\"async\">\uae30\ubcf8<\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<h2>5. \ubcc0\ud658\uacfc \ud754\ud55c \ud568\uc815<\/h2>\n\n<h3>\uc61b \ucf5c\ubc31 API \ub97c Promise \ub85c \uac10\uc2f8\uae30<\/h3>\n\n<p>\ub808\uac70\uc2dc \ub77c\uc774\ube0c\ub7ec\ub9ac\uac00 \ucf5c\ubc31 API \ub9cc \uc81c\uacf5\ud558\uba74? Node \uac00 \ud45c\uc900 \ubcc0\ud658\uae30\ub97c \uc81c\uacf5\ud55c\ub2e4.<\/p>\n\n<div class=\"code-block\">import { promisify } from &#8216;node:util&#8217;;\nimport fs from &#8216;node:fs&#8217;;\n\nconst readFile = promisify(fs.readFile);\nconst data = await readFile(&#8216;hello.txt&#8217;, &#8216;utf-8&#8217;);\nconsole.log(data);<\/div>\n\n<p><code>promisify<\/code> \ub294 \ub9c8\uc9c0\ub9c9 \uc778\uc790\uac00 \ucf5c\ubc31\uc778 \ud568\uc218\ub97c Promise \ubc18\ud658 \ud568\uc218\ub85c \uc790\ub3d9 \ubcc0\ud658. \ub2e8 \ucf5c\ubc31\uc774 <code>(err, ...rest)<\/code> \ud45c\uc900 \ud615\ud0dc\uc5ec\uc57c \ud568.<\/p>\n\n<h3>\ud754\ud55c \ud568\uc815<\/h3>\n\n<div class=\"warnbox\">\n<strong>\uc2e4\uc218 1\uc704 \u2014 forEach \uc548\uc5d0\uc11c await<\/strong> \u2014 <code>arr.forEach(async x =&gt; await fetchUser(x))<\/code> \ub294 \ub3d9\uc791 \uc548 \ud568. <code>forEach<\/code> \uac00 \ucf5c\ubc31\uc758 Promise \ub97c \ubb34\uc2dc. \ub300\uc2e0 <code>for (const x of arr) { await fetchUser(x) }<\/code> \ub610\ub294 <code>await Promise.all(arr.map(fetchUser))<\/code>.\n<\/div>\n\n<p>\ub2e4\ub978 \ud568\uc815 4\uac00\uc9c0:<\/p>\n\n<ul>\n<li><strong><code>await<\/code> \ube7c\uba39\uae30<\/strong> \u2014 Promise \uac1d\uccb4\uac00 \uadf8\ub300\ub85c \uac12\uc73c\ub85c \ub4e4\uc5b4\uac00 <code>Promise &lt;pending&gt;<\/code> \ucd9c\ub825. TypeScript \ub77c\uba74 \ucef4\ud30c\uc77c\ub7ec\uac00 \uc7a1\uc544\uc900\ub2e4.<\/li>\n<li><strong>\ubcd1\ub82c \uac00\ub2a5\ud55c\ub370 \uc21c\ucc28\ub85c<\/strong> \u2014 \ub3c5\ub9bd\uc801\uc778 \ub450 fetch \ub294 <code>Promise.all<\/code> \ub85c \ubb36\uc5b4\uc57c \ub450 \ubc30 \ube60\ub984.<\/li>\n<li><strong>uncaught rejection<\/strong> \u2014 Promise \uc758 <code>.catch<\/code> \ube7c\uba39\uc73c\uba74 \ud504\ub85c\uc138\uc2a4\uac00 \uc8fd\uc744 \uc218 \uc788\ub2e4 (Node 22 \ubd80\ud130 \uac15\uc81c). \ud56d\uc0c1 <code>try\/catch<\/code> \ub610\ub294 <code>.catch<\/code>.<\/li>\n<li><strong>callback \uc548\uc5d0\uc11c throw<\/strong> \u2014 \ube44\ub3d9\uae30 \ucf5c\ubc31 \uc548\uc758 <code>throw<\/code> \ub294 \ud638\ucd9c\uc790\uac00 \ubabb \uc7a1\ub294\ub2e4. \ucf5c\ubc31 API \ub77c\uba74 \uc5d0\ub7ec\ub97c <code>callback(err)<\/code> \ub85c \ub118\uaca8\uc57c.<\/li>\n<\/ul>\n\n<h3>\uc694\uc57d \u2014 9\ud3b8 \uc88c\ud45c<\/h3>\n\n<p>\uc5ec\uae30\uae4c\uc9c0 \uc815\ub9ac. Node \ube44\ub3d9\uae30\ub294 \uc138 \uc2dc\ub300 \u2014 <strong>\ucf5c\ubc31 \u2192 Promise \u2192 async\/await<\/strong>. \uc2e0\uaddc \ucf54\ub4dc\ub294 \ubb34\uc870\uac74 async\/await + try\/catch. \ucf5c\ubc31\ub9cc \uc788\ub294 \uc61b API \ub294 <code>promisify<\/code> \ub85c \uac10\uc2f8\uae30. <code>forEach + await<\/code> \ud568\uc815, <code>await<\/code> \ube7c\uba39\uae30, \ub3c5\ub9bd\uc801\uc778\ub370 \uc21c\ucc28 \ud638\ucd9c \u2014 \ud754\ud55c \uc2e4\uc218 3\uac00\uc9c0 \uc678\uc6cc\ub450\uba74 \ub41c\ub2e4. \ub2e4\uc74c \ud3b8\uc5d0\uc120 \ub300\uc6a9\ub7c9 \ub370\uc774\ud130\ub97c \uba54\ubaa8\ub9ac \uac71\uc815 \uc5c6\uc774 \ucc98\ub9ac\ud558\ub294 <strong>Stream<\/strong> \uc744 \ubcf8\ub2e4.<\/p>\n\n<div class=\"cta\">\n<h3>\ub2e4\uc74c \ud3b8 \uc608\uace0 \u2014 Stream<\/h3>\n<p>\ud070 \ud30c\uc77c\u00b7\ub124\ud2b8\uc6cc\ud06c \ub370\uc774\ud130\ub97c \uccad\ud06c \ub2e8\uc704\ub85c \ud758\ub9ac\ub294 \ubc95. 10\ud3b8.<\/p>\n<\/div>\n\n<div class=\"footer-nav\">\n\uc2dc\ub9ac\uc988 \u00b7 <a href=\"https:\/\/junai.ai\/blog\/category\/nodejs\/\">\uc27d\uac8c \ubc30\uc6b0\ub294 Node.js<\/a> \u00b7 \uc774\uc804: <a href=\"https:\/\/junai.ai\/blog\/nodejs-event-loop-8\/\">Ch.8 \uc774\ubca4\ud2b8 \ub8e8\ud504<\/a>\n<\/div>\n\n<\/article>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Node \ube44\ub3d9\uae30 \uc9c4\ud654\uc0ac \u2014 \ucf5c\ubc31 \ud5ec, Promise, async\/await. \uc138 \uc2dc\ub300\uc758 \ucf54\ub4dc \ubaa8\uc591\uacfc \ubcc0\ud658 \ubc29\ubc95, \uc2e4\uc804 \ud328\ud134. \uad50\uc7ac 9\ud3b8.<\/p>\n","protected":false},"author":1,"featured_media":830,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-884","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nodejs"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/comments?post=884"}],"version-history":[{"count":0,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/884\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media\/830"}],"wp:attachment":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media?parent=884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/categories?post=884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/tags?post=884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}