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

Method Next

cpp/src/arrow/util/async_generator_test.cc:1197–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1195 : token(std::make_shared<bool>(false)), slow(slow) {}
1196
1197 Result<TestInt> Next() {
1198 if (slow) {
1199 SleepABit();
1200 }
1201 return TestInt(0);
1202 }
1203 std::weak_ptr<bool> GetWeakTargetRef() { return std::weak_ptr<bool>(token); }
1204
1205 std::shared_ptr<bool> token;

Callers

nothing calls this directly

Calls 2

SleepABitFunction · 0.85
TestIntClass · 0.85

Tested by

no test coverage detected