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

순진이의 순진한 하루

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

순진이의 순진한 하루

검색하기 폼
  • 분류 전체보기 (100)
    • 순진이의 하루 (23)
      • study정리 (16)
    • swift (10)
    • iOS 기초 (11)
    • iOS 개발자 되기 (29)
      • combine (1)
    • Flutter (18)
    • 알아두면 유용할 것 (7)
    • SwiftUI (0)
    • 프로그래머스 (0)
  • 방명록

iOS 개발자 되기/combine (1)
combine (1) - Publisher, Subscriber

Publisher Protocol public protocol Publisher { associatedtype Output associatedtype Failure : Error } ✔️ 말 그대로 Publish(발행)하는 프로토콜. Subscriber의 instance에게 elements를 전달. ✔️ Publisher의 associated types인 Output, Failure는 -> Subscriber의 associated types인 Input, Failure과 매치됨 ✔️ Publisher는 subscriber를 받아들이기 위해 receive(subscriber:)를 함(Publisher와 Subscriber가 연결되는 행위). ✔️ 그래야 Publisher가 발행 하는 값을 Subscribe..

iOS 개발자 되기/combine 2022. 11. 3. 17:00
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크

Blog is powered by Tistory / Designed by Tistory

티스토리툴바