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

Function DiscardAllFromAsyncGenerator

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

Source from the content-addressed store, hash-verified

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

Callers 2

ToTableAsyncMethod · 0.85
DoCountMethod · 0.85

Calls 2

VisitAsyncGeneratorFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected