pitrou commented on a change in pull request #9613:
URL: https://github.com/apache/arrow/pull/9613#discussion_r587359365
##########
File path: cpp/src/arrow/io/caching.h
##########
@@ -99,6 +100,9 @@ class ARROW_EXPORT ReadRangeCache {
/// \brief Read a range previously given to Cache().
Result<std::shared_ptr<Buffer>> Read(ReadRange range);
+ /// \brief Wait until all ranges added so far have been cached.
+ Future<> Wait();
Review comment:
Hmm... Wouldn't it be better to expose a `ReadAsync` equivalent to
`Read`?
```c++
Future<std::shared_ptr<Buffer>> Read(ReadRange range);
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]