Swift Concurrency 마스터 로드맵
목표: 실무에서 race-free, cancel-safe, testable한 비동기 코드를 설계/구현/검증할 수 있는 수준.
8주 학습 순서
- 비동기 실행 모델, suspension point, structured concurrency
- async/await, async let, TaskGroup
- Task 생명주기, 취소 전파, timeout/retry 정책
- Actor 격리, reentrancy, MainActor 경계
- Sendable/@Sendable, 데이터 레이스 진단
- Continuation 브릿지(콜백->async), 에러 모델링
- AsyncSequence/AsyncStream, backpressure 개념
- 테스트/프로파일링(Instruments, signpost), 운영 체크리스트
통과 기준
구현
- 콜백 API를 async로 안전 변환
- actor 기반 공유 상태 보호
- 취소/타임아웃/재시도 정책 적용
검증
- 단위 테스트로 상태 전이 검증
- 메인스레드 블로킹 제거 증명
- before/after 프로파일 비교
학습 동반 문서: Swift Concurrency 섹션 대응형 설명서