ClickHouse/src/IO/SynchronousReader.h
2022-09-07 17:48:11 +02:00

21 lines
342 B
C++

#pragma once
#include <IO/AsynchronousReader.h>
namespace DB
{
/** Implementation of IAsynchronousReader that in fact synchronous.
* The only addition is posix_fadvise.
*/
class SynchronousReader final : public IAsynchronousReader
{
public:
std::future<Result> submit(Request request) override;
void wait() override {}
};
}