| 25 | } |
| 26 | |
| 27 | void Task::Cancel() |
| 28 | { |
| 29 | if (Platform::AtomicRead(&_cancelFlag) == 0) |
| 30 | { |
| 31 | // Send event |
| 32 | OnCancel(); |
| 33 | |
| 34 | // Cancel child |
| 35 | if (_continueWith) |
| 36 | _continueWith->Cancel(); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | bool Task::Wait(double timeoutMilliseconds) const |
| 41 | { |
no test coverage detected