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

Function MakeBlockingGenerator

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

Source from the content-addressed store, hash-verified

1993/// This generator does not queue
1994template <typename T>
1995Result<AsyncGenerator<T>> MakeBlockingGenerator(std::shared_ptr<Iterator<T>> iterator) {
1996 return [it = std::move(iterator)]() mutable -> Future<T> {
1997 return Future<T>::MakeFinished(it->Next());
1998 };
1999}
2000
2001template <typename T>
2002Result<AsyncGenerator<T>> MakeBlockingGenerator(Iterator<T> iterator) {

Callers 4

MakeGeneratorMethod · 0.85
MakeGeneratorMethod · 0.85
MakeGeneratorMethod · 0.85
MakeGeneratorMethod · 0.85

Calls 1

NextMethod · 0.45

Tested by

no test coverage detected