U
vi @ s d dl mZmZmZmZ d dlmZmZmZ d dlm Z
d dlm Z edZe je eee gee f dddZ
e je eee gee f dd d
Zdd
gZdS ) )CallableOptionalTupleTypeVar)
Observableabccompose) operators)typing_T) predicatereturnc s t t t t d fdd}|S )N)sourcer
c s, dt jt tt j d fdd
}t|S )aN Bypasses elements in an observable sequence as long as a
specified condition is true and then returns the remaining
elements. The element's index is used in the logic of the
predicate function.
Example:
>>> skip_while(source)
Args:
source: The source observable to skip elements from.
Returns:
An observable sequence that contains the elements from the
input sequence starting at the first element in the linear
series that does not pass the test specified by predicate.
N)observer schedulerc s0 dt d fdd}j| j j|dS )NF)valuec
sX sFz| W n2 t k
rD } z | W Y d S d }~X Y nX rT | d S N) Exceptionon_erroron_next)r Zexn)r r running O/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_skipwhile.pyr % s
zCskip_while_.