| 786 | Future<BreakValueType> Loop(Iterate iterate) { |
| 787 | struct Callback { |
| 788 | bool CheckForTermination(const Result<Control>& control_res) { |
| 789 | if (!control_res.ok()) { |
| 790 | break_fut.MarkFinished(control_res.status()); |
| 791 | return true; |
| 792 | } |
| 793 | if (control_res->has_value()) { |
| 794 | break_fut.MarkFinished(**control_res); |
| 795 | return true; |
| 796 | } |
| 797 | return false; |
| 798 | } |
| 799 | |
| 800 | void operator()(const Result<Control>& maybe_control) && { |
| 801 | if (CheckForTermination(maybe_control)) return; |
nothing calls this directly
no test coverage detected