Reflex C++

Reflex Async

Asynchronous task execution and timing utilities for background work, progress tracking, and frame-synchronised callbacks.

Async

Asynchronous task execution and timing utilities.

Task Status

kStatusPending
kStatusFailed // Note: typo in API as kStausFailed
kStatusCompleted

Clocks

// One-shot clock (fires on next frame)
TRef<Object> CreateClock(const Function<void()>& callback);
// Repeating clock
TRef<Object> CreatePeriodicClock(Float32 interval, const Function<void()>& callback);

Task

class Task : System::Task {
void Abort();
ConstTRef<ObjectOf<Float32>> GetProgress(); // 0.0–1.0 progress
Task::Status GetStatus();
TRef<Object> GetResult();
};

Worker

Background worker thread. Inherits from System::Task.