본문 바로가기 메뉴 바로가기

KimBaechu

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

KimBaechu

검색하기 폼
  • 분류 전체보기 (151)
    • iOS (88)
    • Swift (32)
    • Git (6)
    • etc. (6)
    • Algorithm (19)
  • 방명록

DispatchWorkItem (1)
[iOS] DispatchWorkItem, DispatchGroup 알아보기

DispatchWorkItem 수행할 작업에 컴플리션 핸들이나 의존성 실행을 연결하는 방법으로 캡슐화합니다. Overview 디스패치 큐나 디스패치 그룹에서 작업을 캡슐화합니다. perfome() let workItem = DispatchWorkItem { print(Thread.current) for i in 1...10 { print("❤️", i) } } workItem.perform() queue.async(execute:) let serialQueue = DispatchQueue(label: "serialQueue") let workItem = DispatchWorkItem { print(Thread.current) for i in 1...10 { print("❤️", i) } } serialQ..

iOS 2021. 1. 18. 23:36
이전 1 다음
이전 다음
공지사항

Blog is powered by Tistory / Designed by Tistory

티스토리툴바