Skip to content

Commit

Permalink
Fix timer in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mat authored and dbrattli committed Dec 31, 2022
1 parent 15f0995 commit 78870b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reactivex/operators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ def delay_with_mapper(
Examples:
>>> # with mapper only
>>> res = source.delay_with_mapper(lambda x: Scheduler.timer(5.0))
>>> res = source.delay_with_mapper(lambda x: reactivex.timer(5.0))
>>> # with delay and mapper
>>> res = source.delay_with_mapper(
reactivex.timer(2.0), lambda x: reactivex.timer(x)
Expand Down Expand Up @@ -3690,7 +3690,7 @@ def throttle_with_mapper(
another value within a computed throttle duration.
Example:
>>> op = throttle_with_mapper(lambda x: rx.Scheduler.timer(x+x))
>>> op = throttle_with_mapper(lambda x: reactivex.timer(x+x))
Args:
throttle_duration_mapper: Mapper function to retrieve an
Expand Down

0 comments on commit 78870b2

Please sign in to comment.