studlog

  • 홈
  • ios
  • computer science

combine 1

Combine: Connectable Publisher Operators

Subscription을 공유하여 동일한 데이터 스트림을 여러 곳에서 재사용해 리소스 사용을 최적화 해보자.RxSwift와 비교하기 [rxswift] Connectable Observable OperatorsObservable을 공유하게 하는 연산자 Observable은 구독자가 추가되면 항상 새로운 시퀀스를 만든다. 서버와 통신하거나 파일을 읽는 경우에 서로 다른 구독자가 같은 observable을 공유할 수 있도록 하여younggyun.tistory.comsharePublisher는 주로 구조체로 정의되어 있으며, 함수의 인자로 전달되거나 다른 속성에 할당될 때마다 스위프트에 의해 복사된다.struct Publisher : Publishershare()는 Publishers.Share 클래스의 인스턴..

swift 2024.05.07
이전
1
다음
더보기
프로필사진

studlog

  • all
    • algorithm & data structure
    • swift

Tag

BOJ, 구조 패턴, 파라메트릭 서치, 아키텍쳐, 트리, 스레드 프로그래밍, 동작 패턴, BFS, 스위프트, combine, 프로그래머스, 그래프, SIL, GIT, 이분 탐색, leetcode, 그리디, 동시성 프로그래밍, RxSwift, 동적 계획법,

최근글과 인기글

  • 최근글
  • 인기글

Copyright © AXZ Corp. All rights reserved.

티스토리툴바