| 175 | } |
| 176 | |
| 177 | void Task::OnFinish() |
| 178 | { |
| 179 | ASSERT(IsRunning() && !IsCancelRequested()); |
| 180 | SetState(TaskState::Finished); |
| 181 | |
| 182 | // Send event further |
| 183 | if (_continueWith) |
| 184 | _continueWith->Start(); |
| 185 | |
| 186 | OnEnd(); |
| 187 | } |
| 188 | |
| 189 | void Task::OnFail() |
| 190 | { |
nothing calls this directly
no test coverage detected