MCPcopy Create free account
hub / github.com/apache/arrow / CheckForTermination

Method CheckForTermination

cpp/src/arrow/util/future.h:788–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786Future<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;

Callers

nothing calls this directly

Calls 3

okMethod · 0.45
MarkFinishedMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected