ReplaySubjectSubscription

public final class ReplaySubjectSubscription<Output, Failure> : Subscription where Failure : Error

A class representing the connection of a subscriber to a publisher.

  • Undocumented

    Declaration

    Swift

    public init(downstream: AnySubscriber<Output, Failure>)
  • Tells a publisher that it may send more values to the subscriber.

    Declaration

    Swift

    public func request(_ newDemand: Subscribers.Demand)
  • Cancel the subscription

    Declaration

    Swift

    public func cancel()
  • Receive the value from the publisher

    Declaration

    Swift

    public func receive(_ value: Output)
  • Receive the completion from the publisher

    Declaration

    Swift

    public func receive(completion: Subscribers.Completion<Failure>)
  • Replay values in the buffer

    Declaration

    Swift

    public func replay(_ values: [Output], completion: Subscribers.Completion<Failure>?)