Multicast

extension Publishers.Multicast
  • Automates the process of connecting to a multicast publisher. Connects when the first subscriber connects then cancels and discards when the subscriber count falls to zero.

    Declaration

    Swift

    public func referenceCounted() -> Publishers.ReferenceCounted<Upstream, SubjectType>

    Return Value

    A publisher which automatically connects to its upstream multicast publisher.