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

Method operator()

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

Source from the content-addressed store, hash-verified

2005template <typename T>
2006struct CancellableGenerator {
2007 Future<T> operator()() {
2008 if (stop_token.IsStopRequested()) {
2009 return stop_token.Poll();
2010 }
2011 return source();
2012 }
2013
2014 AsyncGenerator<T> source;
2015 StopToken stop_token;

Callers

nothing calls this directly

Calls 2

IsStopRequestedMethod · 0.80
PollMethod · 0.80

Tested by

no test coverage detected