> For the complete documentation index, see [llms.txt](https://3440217568.gitbook.io/rxswift/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://3440217568.gitbook.io/rxswift/decision_tree/interval.md).

# interval

**创建一个 `Observable` 每隔一段时间，发出一个索引数**

![](/files/-MWlwPcuHHOwnC3RXMIa)

**interval** 操作符将创建一个 `Observable`，它每隔一段设定的时间，发出一个索引数的元素。它将发出无数个元素。
