본문 바로가기

Geon

검색하기
Geon
프로필사진 jgkim1008

  • 분류 전체보기 (71)
    • TCA (1)
    • SwiftUI (14)
      • 지식 창고 (14)
    • swift (1)
      • 개념 (1)
      • RXSwift (0)
    • 코딩테스트 (16)
    • Linux (5)
    • ETC (2)
    • OOP (5)
    • CS (0)
    • iOS developer essential ski.. (26)
      • Modern Concurency (18)
    • 이벤트 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
일 월 화 수 목 금 토
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
31
Tags
  • 오블완
  • ios
  • modern concurrency deep dive
  • WWDC
  • SWIFT
  • 티스토리챌린지
  • modern concurrency
  • APNS
  • 야곰 # 야곰아카데미커리어스타터캠프 #iOS개발자 # 부트캠프
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록SWIFT (1)

Geon

Modern Concurrency Deep Dive(1)

Task- 비동기의 단위이다.- 내부에 self를 참조하고 있을때 기존의 DispatchQueue와 다르게 자동으로 self를 해제해준다.(Task closure lifetime)- 즉 캡쳐를 해도 상관은없으나, 필요한 사항이 아니면 할필요가 없다. final class Mock { var image: UIImage? func someFunction() asnyc -> UIImage? { Task { Task.sleep(5) image = UIImage() // self 선언 안해줘도 된다. } }} 출저: https://developer.apple.com/documentation/swift/task#Task-closure-lifetime

iOS developer essential skills/Modern Concurency 2024. 11. 14. 23:45
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바