Created
December 1, 2021 05:09
-
-
Save jeffersonsetiawan/48501f57681c99bfdd43d09dc261e023 to your computer and use it in GitHub Desktop.
RxSwift Producer.subscribe (Simplified version)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Producer subscribe method (simplified) | |
let disposer = SinkDisposer() | |
let sinkAndSubscription = self.run(observer, cancel: disposer) | |
disposer.setSinkAndSubscription(sink: sinkAndSubscription.sink, subscription: sinkAndSubscription.subscription) | |
return disposer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment