| 808 | Future<BreakValueType> Loop(Iterate iterate) { |
| 809 | struct Callback { |
| 810 | bool CheckForTermination(const Result<Control>& control_res) { |
| 811 | if (!control_res.ok()) { |
| 812 | break_fut.MarkFinished(control_res.status()); |
| 813 | return true; |
| 814 | } |
| 815 | if (control_res->has_value()) { |
| 816 | break_fut.MarkFinished(**control_res); |
| 817 | return true; |
| 818 | } |
| 819 | return false; |
| 820 | } |
| 821 | |
| 822 | void operator()(const Result<Control>& maybe_control) && { |
| 823 | if (CheckForTermination(maybe_control)) return; |
nothing calls this directly
no test coverage detected