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

Function DiscardAllFromAsyncGenerator

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

Source from the content-addressed store, hash-verified

119/// \brief Wait for an async generator to complete, discarding results.
120template <typename T>
121Future<> DiscardAllFromAsyncGenerator(AsyncGenerator<T> generator) {
122 std::function<Status(T)> visitor = [](const T&) { return Status::OK(); };
123 return VisitAsyncGenerator(generator, visitor);
124}
125
126/// \brief Collect the results of an async generator into a vector
127template <typename T>

Callers 2

ToTableAsyncMethod · 0.85
DoCountMethod · 0.85

Calls 2

VisitAsyncGeneratorFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected