U vis@sddlmZddlmZmZmZddlmZddlm Z ddl m Z m Z m Z mZddlmZedZGd d d e ee eZd gZd S) )abstractmethod)OptionalTypeVarUnion)DisposableBase)ObservableBase) ObserverBase OnCompletedOnErrorOnNext) SchedulerBase_Tc @seZdZdZdZedddeeee e e fee ee ee edddZee ddd d Zeedd d d ZeddddZdS) SubjectBasez{Subject abstract base class. Represents an object that is both an observable sequence as well as an observer. N) scheduler)on_nexton_error on_completedrreturncCstdS)aSubscribe an observer to the observable sequence. Args: observer: [Optional] The object that is to receive notifications. scheduler: [Optional] The default scheduler to use for this subscription. Returns: Disposable object representing an observer's subscription to the observable sequence. NNotImplementedError)selfrrrrrrF/opt/alt/python38/lib/python3.8/site-packages/reactivex/abc/subject.py subscribeszSubjectBase.subscribe)valuercCstdS)zxNotifies the observer of a new element in the sequence. Args: value: The received element. Nr)rrrrrr-szSubjectBase.on_next)errorrcCstdS)z}Notifies the observer that an exception has occurred. Args: error: The error that has occurred. Nr)rrrrrr7szSubjectBase.on_error)rcCstdS)z1Notifies the observer of the end of the sequence.Nr)rrrrrAszSubjectBase.on_completed)NNN)__name__ __module__ __qualname____doc__ __slots__rrrr rr r r r rrr Exceptionrrrrrrr s*  rN)abcrtypingrrrZ disposablerZ observablerZobserverr r r r rr rr__all__rrrrs    <