Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Async > API/Runtime/Core/Async/FFunctionGraphTask > API/Runtime/Core/Async/FFunctionGraphTask/CreateAndDispatchWhenReady
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h |
| Include | #include "Async/TaskGraphInterfaces.h" |
static FGraphEventRef CreateAndDispatchWhenReady
&40;
TUniqueFunction< void()> InFunction,
TStatId InStatId,
const FGraphEventArray &42; InPrerequisites,
ENamedThreads::Type InDesiredThread
&41;
Remarks
Create a task and dispatch it when the prerequisites are complete completion handle for the new task
Parameters
| Name | Description |
|---|---|
| InFunction | a functor object to execute when the prerequisites are complete, with signature void() or void(ENamedThreads::Type, const FGraphEventRef&) |
| InStatId | StatId of task for debugging or analysis tools |
| InPrerequisites | Handles for prerequisites for this task, can be NULL if there are no prerequisites |
| InDesiredThread | Thread to run on |