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

Peppo

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

Peppo

검색하기 폼
  • 분류 전체보기 (222)
    • Story (13)
    • iOS (144)
      • Error (11)
    • 알고리즘 (43)
    • ETC (7)
    • React-Native (0)
    • CS (Computer science) (3)
  • 방명록

Combine Future (1)
[Combine] Chapter13 : Resource Management

share() 값(value)으로 보다는 참조(reference)로 publisher를 공유할 수 있게 해줍니다. 즉, share() 메서드는 일반적으로 struct로 되어있는 Publisher를 reference타입으로 반환해줌! subscriber는 구독후에 upstream publisher가 방출하는 값을 받게됩니다. subscriber가 upstream publisher가 완료된 공유 publisher를 구독하면, 해당 subscriber는 완료 이벤트(completion event)만 받습니다. import Combine import Foundation let shared = URLSession.shared .dataTaskPublisher(for: URL(string: "https://www...

iOS 2023. 1. 19. 09:49
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • Peppo's Github
TAG
  • Swift RIBs
  • Class
  • iOS error
  • Swift 내림차순
  • 2023년 회고
  • Swift ModernRIBs
  • Swift Leetcode
  • Swift 프로퍼티
  • swift programmers
  • Swift 알고리즘
  • ios
  • RTCCameraVideoCapturer
  • Swift init
  • swift reduce
  • Swift
  • RIBs tutorial
  • swift protocol
  • Combine: Asynchronous Programming with Swift
  • CS 네트워크
  • swift property
  • swift 고차함수
  • removeLast()
  • Swift final
  • 원티드 프리온보딩
  • Swift joined()
  • Swift inout
  • Swift 프로그래머스
  • Swift joined
  • swift (programmers)
  • Swift Error Handling
more
«   2026/04   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바