| 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 | { |
no test coverage detected