U
vi @ s d dl m Z d dlmZmZmZmZ d dlmZmZmZ d dl m
Z
d dlmZ edZ
dejeej eee
gee
f dd d
Zd
gZdS ) )datetime)AnyCallableOptionalTypeVar)
Observableabctyping)CompositeDisposable)TimeoutScheduler_TN)
start_time schedulerreturnc s" t t t t d fdd}|S )N)sourcer c sD t trd nd dtjt ttj d fdd
}t|S )a Skips elements from the observable source sequence until the
specified start time.
Errors produced by the source sequence are always forwarded to
the result sequence, even if the error occurs before the start
time.
Examples:
>>> res = source.skip_until_with_time(datetime)
>>> res = source.skip_until_with_time(5.0)
Args:
start_time: Time to start taking elements from the source
sequence. If this value is less than or equal to
`datetime.utcnow`, no elements will be skipped.
Returns:
An observable sequence with the elements skipped until the
specified start time.
Zschedule_absoluteZschedule_relativeN)observer
scheduler_c sr p|pt }dgtd d fdd}j| j j|d}tjtdfdd}t ||}t
||S ) NF)xr c s d r | d S )Nr )on_next)r r open W/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_skipuntilwithtime.pyr 2 s zWskip_until_with_time_.