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

Method Complete

Source/PCGExtendedToolkit/Private/PCGExMT.cpp:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 bool FAsyncHandle::Complete()
113 {
114 EAsyncHandleState ExpectedState = EAsyncHandleState::Running;
115 if (CompareAndSetState(ExpectedState, EAsyncHandleState::Ended))
116 {
117 // Task was running, assume proper ending
118 End(IsCancelled());
119 }
120
121 return GetState() == EAsyncHandleState::Ended;
122 }
123
124 void FAsyncHandle::End(const bool bIsCancellation)
125 {

Callers 2

StartBackgroundTaskMethod · 0.45
DeferredCallbackFunction · 0.45

Calls 2

IsCancelledFunction · 0.85
GetStateFunction · 0.85

Tested by

no test coverage detected