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

Method operator()

cpp/src/arrow/util/async_generator.h:2112–2117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2110template <typename T>
2111struct CancellableGenerator {
2112 Future<T> operator()() {
2113 if (stop_token.IsStopRequested()) {
2114 return stop_token.Poll();
2115 }
2116 return source();
2117 }
2118
2119 AsyncGenerator<T> source;
2120 StopToken stop_token;

Callers

nothing calls this directly

Calls 2

IsStopRequestedMethod · 0.80
PollMethod · 0.80

Tested by

no test coverage detected