MCPcopy Create free account
hub / github.com/apache/arrow / operator()

Method operator()

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

Source from the content-addressed store, hash-verified

798 }
799
800 void operator()(const Result<Control>& maybe_control) && {
801 if (CheckForTermination(maybe_control)) return;
802
803 auto control_fut = iterate();
804 while (true) {
805 if (control_fut.TryAddCallback([this]() { return *this; })) {
806 // Adding a callback succeeded; control_fut was not finished
807 // and we must wait to CheckForTermination.
808 return;
809 }
810 // Adding a callback failed; control_fut was finished and we
811 // can CheckForTermination immediately. This also avoids recursion and potential
812 // stack overflow.
813 if (CheckForTermination(control_fut.result())) return;
814
815 control_fut = iterate();
816 }
817 }
818
819 Iterate iterate;
820

Callers

nothing calls this directly

Calls 2

TryAddCallbackMethod · 0.45
resultMethod · 0.45

Tested by

no test coverage detected