Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- SWIFT
- modern concurrency
- 야곰 # 야곰아카데미커리어스타터캠프 #iOS개발자 # 부트캠프
- WWDC
- 오블완
- modern concurrency deep dive
- APNS
- ios
- 티스토리챌린지
Archives
- Today
- Total
Geon
Modern Concurrency Deep Dive(5) 본문
iOS developer essential skills/Modern Concurency
Modern Concurrency Deep Dive(5)
jgkim1008 2024. 11. 18. 23:45Continuation
- 동기 코드를 비동기 코드로 연결해주는 매커니즘
- 콜백 방식의 api, delegate 방식의 api를 async/await 방식으로 전환가능
- 반드시 한번만 호출해야함(호출을 안해도 누수 발생할수 있다.)
// 런타임에 체크 (안전성)
// Continuation의 잘못된 사용이나 에러 플래그를 감지하여 오류 나타냄
await withCheckedContinuation
try await withCheckedThrowingContinuation
// 런타임에 체크 하지 않음
// 퍼포먼스 중요할떄
await withUnsafeContinuation
try await awitWithUnSafeThrowingContinuation
'iOS developer essential skills > Modern Concurency' 카테고리의 다른 글
Modern Concurrency Deep Dive(7) (0) | 2024.11.20 |
---|---|
Modern Concurrency Deep Dive(6) (0) | 2024.11.19 |
Modern Concurrency Deep Dive(4) (0) | 2024.11.17 |
Modern Concurrency Deep Dive(3) (0) | 2024.11.16 |
Modern Concurrency Deep Dive(2) (0) | 2024.11.15 |