🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 09:34:22 | PHP 8.2.32
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
reactivex
/
operators
/
__pycache__
📍 /opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/__pycache__
🔄 Refresh
✏️
Editing: _publish.cpython-38.pyc
Read Only
U v�i� � @ s� d dl mZmZmZmZ d dlmZmZmZm Z d dlm Z d dlm Z d dlmZ ed�Zed�Zdeeee ee f eee geee ee f f d �d d�Zeee gee f d�d d�ZddgZdS )� )�Callable�Optional�TypeVar�Union)�ConnectableObservable� Observable�abc�compose)� operators��Subject)�Mapper�_TSource�_TResultN)�mapper�returnc C s@ | r.dt tj tt d�dd�}tj|| d�S t� }tj|d�S )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.py�factory( s zpublish_.<locals>.factory)Zsubject_factoryr )�subject)N)r r Z SchedulerBaser r �opsZ multicast)r r r r r r �publish_ s r )r c C s t t�� t�� �S )a� Share a single subscription among multple observers. Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will unsubscribe from the source Observable. This is an alias for a composed publish() and ref_count(). )r r �publishZ ref_countr r r r �share_1 s �r )N)�typingr r r r Z reactivexr r r r r r Zreactivex.subjectr Zreactivex.typingr r r r r �__all__r r r r �<module> s ���%
💾 Save Changes
❌ Cancel