rx/core/observablebase.py
def publish(self, mapper: Mapper = None) -> "rx.core.ConnectableObservable":
        """Returns an observable sequence that is the result of invoking the
        mapper on a connectable observable sequence that shares a single
        subscription to the underlying sequence. This operator is a
        specialization of Multicast using a regular Subject.

        Examples:
            >>> res = source.publish()
            >>> res = source.publish(lambda x: x)

        Args:
            mapper: Selector function which can use the
                multicasted source sequence as many times as needed,
                without causing multiple subscriptions to the source
                sequence. Subscribers to the given source will receive
                all notifications of the source from the time of the
                subscription on.

        Returns:
            An observable sequence that contains the elements of a
            sequence produced by multicasting the source sequence
            within a mapper function."""

        from ..operators.observable.publish import publish
        return publish(self, mapper)
Returns an observable sequence that is the result of invoking the
        mapper on a connectable observable sequence that shares a single
        subscription to the underlying sequence. This operator is a
        specialization of Multicast using a regular Subject.

        Examples:
            >>> res = source.publish()
            >>> res = source.publish(lambda x: x)

        Args:
            mapper: Selector function which can use the
                multicasted source sequence as many times as needed,
                without causing multiple subscriptions to the source
                sequence. Subscribers to the given source will receive
                all notifications of the source from the time of the
                subscription on.

        Returns:
            An observable sequence that contains the elements of a
            sequence produced by multicasting the source sequence
            within a mapper function.
Returns an observable sequence that is the result of invoking the
mapper on a connectable observable sequence that shares a single
subscription to the underlying sequence. This operator is a
specialization of Multicast using a regular Subject.
Returns an observable sequence that is the result of invoking the mapper on a connectable observable sequence that shares a single subscription to the underlying sequence . This operator is a specialization of Multicast using a regular Subject .
def publish(self, mapper: Mapper = None) -> "rx.core.ConnectableObservable":
        from ..operators.observable.publish import publish
        return publish(self, mapper)
def publish ( self , mapper : Mapper = None ) -> "rx.core.ConnectableObservable" : from . . operators . observable . publish import publish return publish ( self , mapper )
Returns an observable sequence that is the result of invoking the
mapper on a connectable observable sequence that shares a single
subscription to the underlying sequence.
Returns an observable sequence that is the result of invoking the mapper on a connectable observable sequence that shares a single subscription to the underlying sequence .
"""Returns an observable sequence that is the result of invoking the
        mapper on a connectable observable sequence that shares a single
        subscription to the underlying sequence. This operator is a
        specialization of Multicast using a regular Subject.

        Examples:
            >>> res = source.publish()
            >>> res = source.publish(lambda x: x)

        Args:
            mapper: Selector function which can use the
                multicasted source sequence as many times as needed,
                without causing multiple subscriptions to the source
                sequence. Subscribers to the given source will receive
                all notifications of the source from the time of the
                subscription on.

        Returns:
            An observable sequence that contains the elements of a
            sequence produced by multicasting the source sequence
            within a mapper function."""
An observable sequence that contains the elements of a
sequence produced by multicasting the source sequence
within a mapper function.
An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a mapper function .
self
mapper
Mapper
Selector function which can use the
multicasted source sequence as many times as needed,
without causing multiple subscriptions to the source
sequence. Subscribers to the given source will receive
all notifications of the source from the time of the
subscription on.
Selector function which can use the multicasted source sequence as many times as needed without causing multiple subscriptions to the source sequence . Subscribers to the given source will receive all notifications of the source from the time of the subscription on .
examples
>>> res = source.publish()
>>> res = source.publish(lambda x: x)
>>> res = source . publish () >>> res = source . publish ( lambda x : x )