| 99 | } |
| 100 | |
| 101 | void TCont::Cancel() noexcept { |
| 102 | if (Cancelled()) { |
| 103 | return; |
| 104 | } |
| 105 | |
| 106 | Cancelled_ = true; |
| 107 | |
| 108 | if (!IAmRunning()) { |
| 109 | ReSchedule(); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | void TCont::Cancel(THolder<std::exception> exception) noexcept { |
| 114 | if (!Cancelled()) { |