Introduction
FOnlineAsyncTaskManager is the foundation for asynchronous operations in every online subsystem.
The task manager runs on its own thread and manages both a serial queue and a parallel queue of FOnlineAsyncTasks.
For the serial queue, execution proceeds as follows:
- Game thread
GameThread- Initialize
Initialize()
- Initialize
- Online thread
OnlineThread- Execute
Tick()untilIsDone() - Add the task to the out queue
OutQueue
- Execute
- Game thread
GameThread- Finalize
Finalize() - Trigger callbacks
TriggerDelegates()
- Finalize
For the parallel queue, the flow is similar to the above, except the tasks do not wait for previous tasks to complete.