Skip to content

useTimeoutFn

带控件的 setTimeout 封装。

¥Wrapper for setTimeout with controls.

示例

Please wait for 3 seconds

用法

¥Usage

ts
import { 
useTimeoutFn
} from '@vueuse/core'
const {
isPending
,
start
,
stop
} =
useTimeoutFn
(() => {
/* ... */ }, 3000)