Skip to content

Commit 78870b2

Browse files
matdbrattli
authored andcommitted
Fix timer in examples
1 parent 15f0995 commit 78870b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reactivex/operators/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def delay_with_mapper(
685685
686686
Examples:
687687
>>> # with mapper only
688-
>>> res = source.delay_with_mapper(lambda x: Scheduler.timer(5.0))
688+
>>> res = source.delay_with_mapper(lambda x: reactivex.timer(5.0))
689689
>>> # with delay and mapper
690690
>>> res = source.delay_with_mapper(
691691
reactivex.timer(2.0), lambda x: reactivex.timer(x)
@@ -3690,7 +3690,7 @@ def throttle_with_mapper(
36903690
another value within a computed throttle duration.
36913691
36923692
Example:
3693-
>>> op = throttle_with_mapper(lambda x: rx.Scheduler.timer(x+x))
3693+
>>> op = throttle_with_mapper(lambda x: reactivex.timer(x+x))
36943694
36953695
Args:
36963696
throttle_duration_mapper: Mapper function to retrieve an

0 commit comments

Comments
 (0)