| 362 | } |
| 363 | |
| 364 | void TContExecutor::Pause() { |
| 365 | if (auto cont = Running()) { |
| 366 | Paused_ = true; |
| 367 | ScheduleExecutionNow(cont); |
| 368 | cont->SwitchTo(&SchedContext_); |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | void TContExecutor::Exit(TCont* cont) noexcept { |
| 373 | ScheduleToDelete(cont); |