Publisher

public extension Combine.Publisher
public extension Combine.Publisher where Failure == Never
  • Returns an Observable representing the underlying Publisher. Upon subscription, the Publisher’s sink pushes events into the Observable. Upon disposing of the subscription, the sink is cancelled.

    Declaration

    Swift

    func asObservable() -> Observable<Output>

    Return Value

    Observable

Available where Failure == Never

  • Returns an Observable representing the underlying Publisher. Upon subscription, the Publisher’s sink pushes events into the Observable. Upon disposing of the subscription, the sink is cancelled.

    Declaration

    Swift

    func asInfallible() -> Infallible<Output>

    Return Value

    Observable