U
vi @ s d dl mZmZmZmZ d dlmZmZmZm Z d dlm
Z d dlm
Z
d dlmZ edZedZdeeee ee f eee geee ee f f d d
dZeee gee f dd
dZddgZdS ) )CallableOptionalTypeVarUnion)ConnectableObservable
Observableabccompose) operatorsSubject)Mapper_TSource_TResultN)mapperreturnc C s@ | r.dt tj tt ddd}tj|| dS t }tj|dS )aE 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.
Example:
>>> res = publish()
>>> res = publish(lambda x: x)
mapper: [Optional] 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.
N) schedulerr c S s t S )Nr )r r M/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_publish.pyfactory( s zpublish_.