U
vâ’iƒ ã @ s† d dl mZ d dlmZmZmZ d dlZd dlmZmZ edƒZ d
eg e
f eee df edee df ee dœdd „Zd gZdS )é )ÚFuture)ÚCallableÚTypeVarÚUnionN)Ú
ObservableÚabcÚ_Tú
Future[_T])Ú conditionÚthen_sourceÚelse_sourceÚreturnc sl |p
t ¡ ‰tˆtƒr t ˆ¡nˆ‰tˆtƒr8t ˆ¡nˆ‰tjttt df dœ‡ ‡‡fdd„}t
|¡S )aê Determines whether an observable collection contains values.
Example:
1 - res = reactivex.if_then(condition, obs1)
2 - res = reactivex.if_then(condition, obs1, obs2)
Args:
condition: The condition which determines if the then_source or
else_source will be run.
then_source: The observable sequence or Promise that
will be run if the condition function returns true.
else_source: [Optional] The observable sequence or
Promise that will be run if the condition function returns
False. If this is not provided, it defaults to
reactivex.empty
Returns:
An observable sequence which is either the then_source or
else_source.
r )Ú_r
c s ˆ ƒ r
ˆS ˆS )N© )r ©r
Zelse_source_r r úL/opt/alt/python38/lib/python3.8/site-packages/reactivex/observable/ifthen.pyÚfactory1 s zif_then_.