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
- 파이썬서버
- 맥
- 딩동말씀
- AJAX
- Python
- Xib
- iOS계산기
- FLASK
- 스위프트
- JavaScript
- 계산기앱만들기
- subscript
- Swift
- DispatchGroup
- Xcode
- 웹
- 앱배포
- FileOwner
- ios
- 계산기앱
- spring
- 자바스크립트
- iOS앱배포
- iOS배포
- 개발기록
- MainScheduler
- customclass
- 스프링
- 앱버전구하기
- jQuery
Archives
- Today
- Total
목록DispatchGroup (1)
개발하는 뚝딱이

오늘의 삽질은 소소한 것이라 다행이다! func download() { // ... let dispatchGroup = DispatchGroup() dispatchGroup.enter() downloadImage { resultImage in // do something dispatchGroup.leave() } dispatchGroup.notify(queue: .main) { // do something } // ... } func downloadImage(completion: @escaping (UIImage?) -> Void) { // do something } DispatchGroup을 사용할 때, .enter()를 호출하면 .leave()가 호출될 때까지 .notify(:)함수는 호출되지 않는다..
오늘의 작은 삽질
2021. 9. 15. 22:39