U viC@sddlmZddlmZddlmZmZmZmZddlm Z m Z m Z m Z ddl mZedZeGdddeeZd ee jee ege eefd d d Zd gZd S)) dataclass)datetime)CallableGenericOptionalTypeVar) Observableabcdefer operators)TimeoutScheduler_Tc@seZdZUeed<eed<dS) Timestampvalue timestampN)__name__ __module__ __qualname__r __annotations__rrrO/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_timestamp.pyr s rN) schedulerreturncs$tttttdfdd }|S)N)sourcercs$dttjdfdd }t|S)aRecords the timestamp for each value in an observable sequence. Examples: >>> timestamp(source) Produces objects with attributes `value` and `timestamp`, where value is the original value. Args: source: Observable source to timestamp. Returns: An observable sequence with timestamp information on values. N) scheduler_cs8p|pttttdfdd }t|S)N)rrcst|jdS)N)rr)rnow)rZ _schedulerrrmapper'sz>timestamp_..timestamp..factory..mapper)r Z singletonr rpiper map)rr)rrrrfactory$sz.timestamp_..timestamp..factory)N)rr SchedulerBaser )rr r)rrrsztimestamp_..timestamp)rr r)rrrr"r timestamp_s r#)N) dataclassesrrtypingrrrrZ reactivexrr r r Zreactivex.schedulerr r rr!r#__all__rrrrs