- Preparing search index...
- The search index is not available
Ylide SDK
- asyncTimer(func: (() => Promise<void>), time: number, preserveExecutionTime?: boolean): (() => void)
-
Parameters
-
func: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
-
time: number
-
preserveExecutionTime: boolean = true
Returns (() => void)
Helper to run async function periodically with the ability to preserve execution time
Returns
Function to dispose the timer