-
-
Save jasdev/bab7184c5c2e689891f047730085c782 to your computer and use it in GitHub Desktop.
Focusing in on `ReplaySubject.Subscription`.
This file contains 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
final class ReplaySubject<Output, Failure: Error>: Subject { /* … */ } | |
extension ReplaySubject { | |
final class Subscription<Subscriber: Combine.Subscriber>: Combine.Subscription | |
where Subscriber.Input == Output, Subscriber.Failure == Failure { | |
init(subscriber: Subscriber) { /* … */ } | |
func request(_ demand: Subscribers.Demand) { /* … */ } | |
func cancel() { /* … */ } | |
func forward(completion: Subscribers.Completion<Failure>) { /* … */ } | |
func forward(value: Output) { /* … */ } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment