🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 10:24:14 | 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: _timeoutwithmapper.cpython-38.pyc
Read Only
U v�i8 � @ s� d dl mZmZmZmZ d dlZd dlmZmZ d dlm Z m Z mZ ed�Zd eee eeegee f eee eee gee f d�dd�Z dgZdS ) � )�Any�Callable�Optional�TypeVarN)� Observable�abc)�CompositeDisposable�SerialDisposable�SingleAssignmentDisposable�_T)� first_timeout�timeout_duration_mapper�other�returnc sB | p t �� � |pt �td���tt tt d�� ��fdd�}|S )a Returns the source observable sequence, switching to the other observable sequence if a timeout is signaled. res = timeout_with_mapper(reactivex.timer(500)) res = timeout_with_mapper(reactivex.timer(500), lambda x: reactivex.timer(200)) res = timeout_with_mapper( reactivex.timer(500), lambda x: reactivex.timer(200)), reactivex.return_value(42) ) Args: first_timeout -- [Optional] Observable sequence that represents the timeout for the first element. If not provided, this defaults to reactivex.never(). timeout_duration_mapper -- [Optional] Selector to retrieve an observable sequence that represents the timeout between the current element and the next element. other -- [Optional] Sequence to return in case of a timeout. If not provided, this is set to reactivex.throw(). Returns: The source sequence switching to the other sequence in case of a timeout. �Timeout)�sourcer c s4 dt jt tt j t jd���� �fdd� }t|�S )N)�observer� schedulerr c s� t � �t � �t� }|�_d�dg� tt d d�� �� ���fdd����� � �fdd��td d�����fd d �}td d���fdd �}d d���fdd�}� j|||�d�|_t���S )NFr )�timeoutr c s� �d ���fdd��t � � � �_td d�� �����fdd�}td d���fdd �}d d �����fdd�}| j|||�d �� _d S )Nr c s � d �kS )Nr � r )�_id�my_idr �W/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_timeoutwithmapper.py� timer_winsA s zktimeout_with_mapper_.<locals>.timeout_with_mapper.<locals>.subscribe.<locals>.set_timer.<locals>.timer_wins��xr c s"