Scheduler
Start a timer
The above timer will be executed every 5s.
Timer that executes only once (shortcut)
The timer above will execute the callback function once after two seconds, and then stop timing.
Cancel a timer
Here is a list of all of the timer functions in Component:
- scheduleOnce: start a timer that is executed only once
- unschedule: cancel a timer
The detailed description of these APIs can be found in the API documentation.
Note: does not include timer related APIs