티스토리 뷰

Swift/Swift Concurrency

[Swift] Concurrency 0 - 공부 시작

말차프라푸치노 2022. 4. 27. 22:24

평소에 SwiftUI를 공부하기 위해서 보는 유튜브가 있다.

Swiftui Thinking 이라는 채널인데 SwiftUI의 기초부터 시작해서 간단한 메모 앱 만들기, Core Data, Testing 까지 SwiftUI의 전반적인 내용을 다뤄준다.

친절하고 꼼꼼하게 다루어줘서 새로운 강의가 나올 때마다 꼬박 꼬박 챙겨보는 편인데 이번에 새로 Concurrency 에 대해 강의를 시작했다.

출처 : 유튜브 SwiftUI Thinking 채널

이번에는 강의를 듣고 공부한 내용을 정리해보려고 한다.

(참고로 유튜버 이름이 닉이다)

 

Concurrency(동시성)은 2021년 9월에 Swift 5.5가 업데이트 되면서 추가되었다.

Swift 공식 문서에서 확인할 수 있다.

 

 

애플 공식 문서

 

Concurrency — The Swift Programming Language (Swift 5.6)

Concurrency Swift has built-in support for writing asynchronous and parallel code in a structured way. Asynchronous code can be suspended and resumed later, although only one piece of the program executes at a time. Suspending and resuming code in your pro

docs.swift.org

 

내 번역본

 

[Swift] 공식문서 18 - Concurrency(동시성)

Concurrency — The Swift Programming Language (Swift 5.5) Concurrency Swift has built-in support for writing asynchronous and parallel code in a structured way. Asynchronous code can be suspended a..

malchafrappuccino.tistory.com

 

 

 

Concurrency는 비동기(Asynchronous) 코드를 작성할 수 있게 도와준다.

앱의 성능을 위해서는 비동기 코드 작성은 필수라고 할 수 있다.

물론 Combine을 사용해서도 비동기 코드를 작성한다.

 

다만 Concurrency를 사용함으로써 효율적이고, 읽기 좋으며, 안전한 코드를 작성할 수 있다.

 

이제부터 Concurrency 공부 시작이다.

 

😁

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함