14 lines
271 B
Python
14 lines
271 B
Python
from typing import Optional
|
|
|
|
from reactivex import Observable, abc, timer, typing
|
|
|
|
|
|
def interval_(
|
|
period: typing.RelativeTime, scheduler: Optional[abc.SchedulerBase] = None
|
|
) -> Observable[int]:
|
|
|
|
return timer(period, period, scheduler)
|
|
|
|
|
|
__all__ = ["interval_"]
|