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

Method WaitForValues

cpp/src/arrow/util/iterator_test.cc:67–70  ·  view source on GitHub ↗

Wait until the iterator has emitted at least `size` values

Source from the content-addressed store, hash-verified

65
66 // Wait until the iterator has emitted at least `size` values
67 void WaitForValues(int size) {
68 auto lock = Lock();
69 cv_.wait(lock, [&]() { return values_.size() >= static_cast<size_t>(size); });
70 }
71
72 void AssertValuesEqual(const std::vector<T>& expected) {
73 auto lock = Lock();

Callers 1

TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected