MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / StartBackgroundTask

Method StartBackgroundTask

Source/PCGExtendedToolkit/Private/PCGExMT.cpp:179–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 }
178
179 void FAsyncMultiHandle::StartBackgroundTask(const TSharedPtr<FTask>& InTask)
180 {
181 if (!IsAvailable()) { return; }
182
183 if (const TSharedPtr<FAsyncMultiHandle> PinnedRoot = Root.Pin())
184 {
185 // Register to self first
186 InTask->SetParent(SharedThis(this));
187
188 // Then push to root
189 PinnedRoot->StartBackgroundTask(InTask);
190 }
191 }
192
193 void FAsyncMultiHandle::StartSynchronousTask(const TSharedPtr<FTask>& InTask)
194 {

Callers

nothing calls this directly

Calls 7

SetParentMethod · 0.80
SetRootMethod · 0.80
AddMethod · 0.45
IsAvailableMethod · 0.45
StartMethod · 0.45
ExecuteTaskMethod · 0.45
CompleteMethod · 0.45

Tested by

no test coverage detected