Timeout
Run after a given time with controls.
# API
# TimeoutConfig
| Property | Description | Default |
|---|---|---|
immediate? |
booleanWhether to start the timer immediately. |
true |
autoStop? |
booleanWhether to cancel timer when hosting component is destroyed. |
true |
# TimeoutReturn
| Property | Description |
|---|---|
isPending |
Readable<boolean>Indicate whether is timer is running. |
stop |
VoidFunctionStop the timer. |
start |
VoidFunctionStart the timer. |
delay |
Writable<number>The controlled delay of the timer. |