iOS) MainActor ์ฌ์ฉํด์ main queue ์์ ์คํ์ํค๊ธฐ
๋ด์ฉ MainActor ๋ฅผ ์ฌ์ฉํด์ main thread ์์์ ๋์์ ๋ณด์ฅํด๋ณด์. MainActor ๋ Concurrency ์ Actors API collection ์ค ํ๋์ ๋๋ค. Apple Developer Documentation MainActor Apple Developer Documentation A singleton actor whose executor is equivalent to the main dispatch queue. ์ฆ, mian thread ์์์ ๋์์ ๋ณด์ฅํ๋ Actor ์ ๋๋ค.MainActor ๋ฅผ ์ฌ์ฉํ๋ฉด DispatchQueue.main ์ ์ธ์ ์ฌ์ฉํ ์ง ๊ณ ๋ฏผํ์ง ์์๋ ๋ฉ๋๋ค! Task { do { movies = try await getMovie() await Mai..
iOS
2022. 6. 3. 22:02
TAG
- github
- async/await
- Widget
- configurable widget
- containerBackground
- SwiftUI
- RxCocoa
- 2022 KAKAO TECH INTERNSHIP
- IOS
- YPImagePicker
- WWDC22
- UserDefaults
- Protocol
- MVVM
- Swift
- APNS
- CloneCoding
- Algorithm
- rxswift
- WidgetKit
- Objective-C
- ์๋ฒํต์
- OpenSourceLibrary
- WWDC
- watchOS
- Firebase
- MOYA
- urlsession
- projectsetting
- Notification
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
๊ธ ๋ณด๊ดํจ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
๋งํฌ
- Total
- Today
- Yesterday