일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- ARC #weak #unowned #Strong Reference #Strong Reference Cycle #순환참조 #Swift #메모리 #memoryLeak #메모리릭
- COW #Copy On Write #Swift #Optimization
- swift concurrency #swift #concurrency #async #async let #swift parallel #병렬실행 #동시실행 #이미지 동시 다운로드 #iOS #UIKit
- Swift#flatMap#map#Monad#함수형 프로그래밍#Optional
- async #await #swift Concurrency #concurrency #actor #concurreny 원리 #concurreny 개념
- 거의최단경로 #5719번반례 # 백준반례 #백준플4 #플레4
- Swift #UIkit #ARC #Reference count #memory leak #memory #leak #애플 #iOS
- ARC #unowned #weak #weak unowned차이 #순환참조 #Strong Reference Cycle #Swift #메모리 #memoryLeak
- UI그리기
- AR #Augmented Reality
- Swift Concurrency #동시성 프로그래밍 #async #await #async let #group Task #병렬 실행 #동시 다운로드
- Compression resistance
- Struct #Value Type #Value #Reference #Reference Type #Class #Structure #memory
- 알고리즘
- Autolayout #
- IntrinsicContentSize #UIKit #Swift #hugging priority #conflict resistance #Ambiguous
- Multitasking #life Cycle
- Autolayout 충돌
- Apple # HIG #iOS15 #iOS14 #Human #Interface #Guidelines #Apple developer # Apple human interface guidelines
- OS #Page #Page Table #Virtual Memory
- Hugging priority
- ARC #Swift #Memory leak #weak self #unowned self #weak self 이유 #reference count #순환 참조 #retain cycle #delayed #deinitialization #지연 해제 #delayed deinitialization
- UIKit기본
- 백준#5719번#
- Swift #try #catch #Swift Concurrency 에러처리 #에러처리 #Error #Error Handling
- Multiple Window #iPad
- deinitialize #스위프트 #Swift #ARC #메모리 #memory #closure #클로저 #클로저 메모리 #weak #weak self #self #unowned self #memoryleak #메모리릭
- notification #
- Multitasking #
- #IntrinsicContentSize
Archives
- Today
- Total
목록async #await #swift Concurrency #concurrency #actor #concurreny 원리 #concurreny 개념 (1)
도니의 iOS 프로그래밍 세상
Swift Concurrency(1) - 기본개념 및 작동원리
1. Swift Concurrency의 도입 배경 iOS 13.0부터 도입된 Swift Concurrency는 비동기 프로그래밍을 보다 편리하게 할 수 있습니다. 그전에, Escaping closure를 사용해서 비동기 처리하는 방식의 문제점은 두가지였습니다. 첫번째로, 가독성이 좋지 않고, 복잡한 코드일수록 중첩된 클로저를 계속해서 작성해야 합니다. 두번째로, 중첩 클로저를 작성하며 에러코드 작성까지 완벽하게 하는 것은 힘들며 이로인해 프로그램 버그를 유발할 수 있습니다. 밑에 코드를 살펴보시죠. 해당 함수는 썸네일 이미지를 다운로드 받는 함수입니다. 이때, 이미지를 서버로부터 다운로드 받을때 escaping closure가 호출됩니다. 그리고 받은 데이터를 가지고 다시 prepareThumnail이라..
Swift
2023. 2. 8. 18:34