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
- WWDC
- modern concurrency deep dive
- APNS
- modern concurrency
- SWIFT
- 티스토리챌린지
- ios
- 오블완
- 야곰 # 야곰아카데미커리어스타터캠프 #iOS개발자 # 부트캠프
Archives
- Today
- Total
Geon
Modern Concurrency Deep Dive(2) 본문
iOS developer essential skills/Modern Concurency
Modern Concurrency Deep Dive(2)
jgkim1008 2024. 11. 15. 23:49Cancel
var task = Task {
let continue = try await longTask()
print(continue)
}
sleep(1)
task.cancel()
- 비동기 동작중, 취소를 콜하면 에러를 던진다.
- yield 는 양보한다는 뜻 (중단 포인트를 만들어 준다)
'iOS developer essential skills > Modern Concurency' 카테고리의 다른 글
Modern Concurrency Deep Dive(6) (0) | 2024.11.19 |
---|---|
Modern Concurrency Deep Dive(5) (0) | 2024.11.18 |
Modern Concurrency Deep Dive(4) (0) | 2024.11.17 |
Modern Concurrency Deep Dive(3) (0) | 2024.11.16 |
Modern Concurrency Deep Dive(1) (0) | 2024.11.14 |