U vâ’iÐã@srddlmZmZmZmZddlmZmZddlm Z m Z m Z edƒZ ej eee gee fdœdd„ZdgZdS) é)ÚAnyÚCallableÚOptionalÚTypeVar)Ú ObservableÚabc)ÚScheduledDisposableÚSerialDisposableÚSingleAssignmentDisposableÚ_T)Ú schedulerÚreturncs ttttdœ‡fdd„ }|S)N)Úsourcer cs,dtjtttjdœ‡‡fdd„ }t|ƒS)a×Subscribe on the specified scheduler. Wrap the source sequence in order to run its subscription and unsubscription logic on the specified scheduler. This operation is not commonly used; see the remarks section for more information on the distinction between subscribe_on and observe_on. This only performs the side-effects of subscription and unsubscription on the specified scheduler. In order to invoke observer callbacks on a scheduler, use observe_on. Args: source: The source observable.. Returns: The source sequence whose subscriptions and un-subscriptions happen on the specified scheduler. N)ÚobserverÚ_csBtƒ}tƒ‰|ˆ_dtjttdœ‡‡‡fdd„ }ˆ |¡|_ˆS)N©r Ústatecst|ˆ ˆ¡ƒˆ_dS)N)rÚ subscribeÚ disposabler)Údrr©úQ/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_subscribeon.pyÚaction,sÿzFsubscribe_on_..subscribe_on..subscribe..action)N)r r rrÚ SchedulerBaserrZschedule)rrÚmr)r r)rrrr%s   z6subscribe_on_..subscribe_on..subscribe)N)rZ ObserverBaser rrr)rr©r )rrÚ subscribe_ons ÿÿz#subscribe_on_..subscribe_on)rr )r rrrrÚ subscribe_on_ s&rN)ÚtypingrrrrZ reactivexrrZreactivex.disposablerr r r rrÚ__all__rrrrÚsþ ,