![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AppleAsyncTask.h>
Inheritance diagram for FAppleAsyncTask:Instance Methods | |
| (void) | - FinishedTask |
Class Methods | |
| (void) | + CreateTaskWithBlock: |
| (void) | + ProcessAsyncTasks |
Properties | |
| id | UserData |
| bool(^ | GameThreadCallback )(void) |
Create an async task object, set the block, and mark it as ready to be processed on main thread For advanced uses (ie, setting UserData or delaying when it's ready for game thread, use the usual [[alloc] init] pattern
Note, this doesn't return an AsyncObject so no one is tempted to use it - once it's ready for game thread, it's dangerous to touch it This is callable on any thread, not just main thread
| - (void) FinishedTask |
Mark that the task is complete on the iOS thread, and now the GameThread can be fired (the Task is unsafe to use after this call)
| + (void) ProcessAsyncTasks |
Tick all currently running tasks
Code to run on the game thread when the async task completes
|
readwriteatomicretain |
Extra data for this async task