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