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

Method Purge

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

Source from the content-addressed store, hash-verified

176 finished(false) {}
177
178 void Purge() {
179 // This might be called by an original callback (if the source iterator fails or
180 // ends) or by a mapped callback (if the map function fails or ends prematurely).
181 // Either way it should only be called once and after finished is set so there is no
182 // need to guard access to `waiting_jobs`.
183 while (!waiting_jobs.empty()) {
184 waiting_jobs.front().MarkFinished(IterationTraits<V>::End());
185 waiting_jobs.pop_front();
186 }
187 }
188
189 AsyncGenerator<T> source;
190 std::function<Future<V>(const T&)> map;

Callers 2

operator()Method · 0.45
operator()Method · 0.45

Calls 3

EndFunction · 0.70
emptyMethod · 0.45
MarkFinishedMethod · 0.45

Tested by

no test coverage detected