Overview of the Timer System
mainThe TimerComponent is a high-performance task scheduling component in the Fantasy Framework. It is designed for game logic scenarios such as delayed execution, periodic tasks, and asynchronous waiting.
Key features include:
- Asynchronous waiting (
WaitAsync,WaitTillAsync) - One-time timers (
OnceTimer,OnceTillTimer) - Repeated timers (
RepeatedTimer) - Frame-based timers (
FrameTimer) - Support for cancellation tokens (
FCancellationToken) - Integration with the event system
Recommended Usage:
While you can access the TimerComponent directly, it is highly recommended to use the simplified FTask static methods for cleaner code.