🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 16:21:07 | PHP 8.2.32
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
reactivex
/
operators
📍 /opt/alt/python38/lib/python3.8/site-packages/reactivex/operators
🔄 Refresh
✏️
Editing: _publishvalue.py
Read Only
from typing import Callable, Optional, TypeVar, Union from reactivex import ConnectableObservable, Observable, abc from reactivex import operators as ops from reactivex.subject import BehaviorSubject from reactivex.typing import Mapper _T1 = TypeVar("_T1") _T2 = TypeVar("_T2") def publish_value_( initial_value: _T1, mapper: Optional[Mapper[Observable[_T1], Observable[_T2]]] = None, ) -> Union[ Callable[[Observable[_T1]], ConnectableObservable[_T1]], Callable[[Observable[_T1]], Observable[_T2]], ]: if mapper: def subject_factory( scheduler: Optional[abc.SchedulerBase] = None, ) -> BehaviorSubject[_T1]: return BehaviorSubject(initial_value) return ops.multicast(subject_factory=subject_factory, mapper=mapper) subject = BehaviorSubject(initial_value) return ops.multicast(subject) __all__ = ["publish_value_"]
💾 Save Changes
❌ Cancel