<?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>Concurrency on iOS 개발 기록</title><link>https://leetaek.github.io/tags/concurrency/</link><description>Recent content in Concurrency on iOS 개발 기록</description><image><title>iOS 개발 기록</title><url>https://leetaek.github.io/images/og-default.png</url><link>https://leetaek.github.io/images/og-default.png</link></image><generator>Hugo -- 0.170.1</generator><language>ko-kr</language><lastBuildDate>Wed, 11 Oct 2023 10:21:13 +0900</lastBuildDate><atom:link href="https://leetaek.github.io/tags/concurrency/index.xml" rel="self" type="application/rss+xml"/><item><title>[Test] Concurrency Test</title><link>https://leetaek.github.io/posts/2023-10-11-concurrency-test/</link><pubDate>Wed, 11 Oct 2023 10:21:13 +0900</pubDate><guid>https://leetaek.github.io/posts/2023-10-11-concurrency-test/</guid><description>&lt;h1 id="상황"&gt;상황&lt;/h1&gt;
&lt;p&gt;&lt;code&gt;AsyncSequence&lt;/code&gt;를 사용한 Concurrency 메서드를 테스트하는데 테스트가 종료되지 않는 상황이 발생했다. 로그도 뜨지 않고 왜 이런 상황이 발생하는 건지 파악도 잘 안됐다. 아마 테스트를 실행하는 스레드와 비동기 작업을 수행하는 스레드가 작업을 끝냈다는 것을 서로 전달하지 않아 데드락이 걸린게 아닐까 싶었다.&lt;/p&gt;</description></item><item><title>[Concurrency] AsyncStream</title><link>https://leetaek.github.io/posts/2023-04-07-concurrency-asyncstream/</link><pubDate>Fri, 07 Apr 2023 18:07:59 +0900</pubDate><guid>https://leetaek.github.io/posts/2023-04-07-concurrency-asyncstream/</guid><description>&lt;p&gt;&lt;img loading="lazy" src="https://leetaek.github.io/images/tistory/74/01.webp"&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;SwiftConcurrency&lt;/code&gt;를 공부하다가 &lt;code&gt;AsyncStream&lt;/code&gt;를 사용할만한 일이 생겨 적용하며 정리해보았다. 다음과 같이 인증 화면에서 시간을 카운트다운 하는 기능을 &lt;code&gt;AsyncStream&lt;/code&gt;를 사용해 적용해보려고 한다.&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="asyncstream"&gt;AsyncStream&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;비동기 Iterator를 제공하는 프로토콜인 &lt;a href="https://developer.apple.com/documentation/swift/asyncsequence"&gt;AsyncSequence&lt;/a&gt;를 쉽게 구현할 수 있도록 제공되는 인터페이스&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;AsyncSequence&lt;/code&gt;를 준수하기 때문에 &lt;code&gt;map&lt;/code&gt;, &lt;code&gt;filter&lt;/code&gt;, &lt;code&gt;contains&lt;/code&gt; 등 익숙한 고차함수 메소드를 사용할 수 있다.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>[Concurrency]Continuation</title><link>https://leetaek.github.io/posts/2023-04-04-concurrency-continuation/</link><pubDate>Tue, 04 Apr 2023 17:17:53 +0900</pubDate><guid>https://leetaek.github.io/posts/2023-04-04-concurrency-continuation/</guid><description>&lt;h1 id="continuation"&gt;Continuation&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Push를 등록을 설정하던 도중에 여러 콜백 함수로 인한 장풍이 생기고 뭔가 가독성이 거슬려서 전에 공부했던 &lt;code&gt;async/await&lt;/code&gt;로 장풍 좀 없애고 싶다는 생각이 들었다.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;요즘엔 많은 메소드들이 &lt;code&gt;async/await&lt;/code&gt;로 구현되어서 편하게 구현하고 있어서 편하게 변환하고 있던 중 막히는 순간이 왔다.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>