일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 알고리즘
- Swift #try #catch #Swift Concurrency 에러처리 #에러처리 #Error #Error Handling
- deinitialize #스위프트 #Swift #ARC #메모리 #memory #closure #클로저 #클로저 메모리 #weak #weak self #self #unowned self #memoryleak #메모리릭
- Multitasking #
- UIKit기본
- Compression resistance
- ARC #unowned #weak #weak unowned차이 #순환참조 #Strong Reference Cycle #Swift #메모리 #memoryLeak
- Hugging priority
- UI그리기
- 백준#5719번#
- ARC #Swift #Memory leak #weak self #unowned self #weak self 이유 #reference count #순환 참조 #retain cycle #delayed #deinitialization #지연 해제 #delayed deinitialization
- Apple # HIG #iOS15 #iOS14 #Human #Interface #Guidelines #Apple developer # Apple human interface guidelines
- Autolayout #
- OS #Page #Page Table #Virtual Memory
- Multiple Window #iPad
- notification #
- #IntrinsicContentSize
- async #await #swift Concurrency #concurrency #actor #concurreny 원리 #concurreny 개념
- AR #Augmented Reality
- Swift #UIkit #ARC #Reference count #memory leak #memory #leak #애플 #iOS
- Struct #Value Type #Value #Reference #Reference Type #Class #Structure #memory
- Autolayout 충돌
- IntrinsicContentSize #UIKit #Swift #hugging priority #conflict resistance #Ambiguous
- COW #Copy On Write #Swift #Optimization
- swift concurrency #swift #concurrency #async #async let #swift parallel #병렬실행 #동시실행 #이미지 동시 다운로드 #iOS #UIKit
- Multitasking #life Cycle
- Swift#flatMap#map#Monad#함수형 프로그래밍#Optional
- ARC #weak #unowned #Strong Reference #Strong Reference Cycle #순환참조 #Swift #메모리 #memoryLeak #메모리릭
- Swift Concurrency #동시성 프로그래밍 #async #await #async let #group Task #병렬 실행 #동시 다운로드
- 거의최단경로 #5719번반례 # 백준반례 #백준플4 #플레4
Archives
- Today
- Total
목록swift concurrency #swift #concurrency #async #async let #swift parallel #병렬실행 #동시실행 #이미지 동시 다운로드 #iOS #UIKit (1)
도니의 iOS 프로그래밍 세상
Async let - Swift Concurrency(3)
이번 시간에는 swift concurrency에서 Parallel 실행을 지원해주는 기능인 async let에 대해서 배워보도록 하겠습니다. 결론적으로 말하자면, 해당 기능을 사용함으로써 Serial하게 동작되었던 async 함수들이 Concurrent하게 실행 되도록 합니다. 기존 Async함수 호출시 문제점 우리는 async await 기술을 사용하여, 중첩된 클로저를 사용한 위의 코드를 밑의 코드와 같이 더욱 간결하게 바꿀수 있게 되었습니다. 하지만, 여기서 한가지 문제점이 떠오릅니다. 만약 수백개의 사진을 다운받는 코드라고 가정한다면 위의 코드는 어떻게 작동할까요? 위의 예제와 같이 순서대로 사진을 다운로드 받습니다. 좀더 간단한 용어로 표현하자면 “Serial(동기)”하게 작동되는 형태입니다. ..
Swift
2023. 3. 9. 23:05