---
mobile: false
title: intervalExecution
nav:
  title: utils
  path: /utils
group:
  title: utils
  path: /utils
  order: 1
---

# intervalExecution
用于时间区间内只执行一次callback的场景

## 1. 代码演示
### 1.1. 格式化

<code hideActions='["CSB", "EXTERNAL"]' src="./demo/index.jsx" ></code>

## 2. API
### 2.1. 实例方法

| 参数              | 说明           | 类型                                                                 | 默认值 |
| ----------------- | -------------- | -------------------------------------------------------------------- | ------ |
| callback         | 回调       | `() => void()`           | -      |
