<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>async on Paran.Blue</title>
    <link>https://bynaki.github.io/tags/async/</link>
    <description>Recent content in async on Paran.Blue</description>
    <image>
      <url>https://bynaki.github.io/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://bynaki.github.io/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Mon, 16 Aug 2021 19:58:31 +0900</lastBuildDate><atom:link href="https://bynaki.github.io/tags/async/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Js :: async/await Catch Error</title>
      <link>https://bynaki.github.io/posts/js.async-await-catch-error/</link>
      <pubDate>Mon, 16 Aug 2021 19:58:31 +0900</pubDate>
      
      <guid>https://bynaki.github.io/posts/js.async-await-catch-error/</guid>
      <description>async function을 바로 return하면 error를 catch 하지 못한다.
let count = 0 function asyncFunc() { return new Promise((resolve, reject) =&amp;gt; { if(count % 10 === 0) { count++ reject(new Error(&amp;#39;error!!&amp;#39;)) return } resolve(++count) }) } async function bad() { try { // await 하지 않고 바로 리턴하면 에러를 캣치하지 못한다.  return asyncFunc() } catch(e) { console.log(e.message) return asyncFunc() } } async function right() { try { const res = await asyncFunc() return res } catch(e) { console.</description>
    </item>
    
    <item>
      <title>Js :: for wait...of</title>
      <link>https://bynaki.github.io/posts/js.for-wait-of/</link>
      <pubDate>Mon, 09 Aug 2021 18:36:53 +0900</pubDate>
      
      <guid>https://bynaki.github.io/posts/js.for-wait-of/</guid>
      <description>for await&amp;hellip;of for await...of 구문은 보통 비동기에 대응하는 열거자를 나열할 때 쓰이지만, String, Array, Array 같은 객체 (e.g., arguments or NodeList), TypedArray, Map, Set 같은 동기적으로 열거 가능한 객체 또한 가능하며, 사용자가 직접 정의한 동기 또는 비동기 객체도 나열할 수 있도록 해준다. 일반적인 for ...of 문과 마찬가지로 열거자 심볼이 정의한 속성을 실행하게 되어 열거한 값을 변수로 받아 처리한다.
구문 for await (variable of iterable) { statement }   variable</description>
    </item>
    
  </channel>
</rss>
