U vi~@sddlmZmZddlmZmZmZedZedddZeegdfZ ee gdfZ egdfZ Gdd d eeeZ d d d d gZdS) )ABCabstractmethod)CallableGenericTypeVar_T_T_inT) contravariantNc@sNeZdZdZdZeeddddZeedddd Z edd d d Z dS) ObserverBasez|Observer abstract base class An Observer is the entity that receives all emissions of a subscribed Observable. N)valuereturncCstdS)zxNotifies the observer of a new element in the sequence. Args: value: The received element. NNotImplementedError)selfr r r G/opt/alt/python38/lib/python3.8/site-packages/reactivex/abc/observer.pyon_nextszObserverBase.on_next)errorr cCstdS)z}Notifies the observer that an exception has occurred. Args: error: The error that has occurred. Nr)rrr r ron_errorszObserverBase.on_error)r cCstdS)z1Notifies the observer of the end of the sequence.Nr)rr r r on_completed)szObserverBase.on_completed) __name__ __module__ __qualname____doc__ __slots__rrr Exceptionrrr r r rr s  r OnNextOnError OnCompleted)abcrrtypingrrrrrrrrrr __all__r r r rs  $