// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "operationcomplete.h" #include namespace storage::spi { class CatchResult : public OperationComplete { public: CatchResult(); ~CatchResult() override; std::future> future_result() { return _promisedResult.get_future(); } void onComplete(std::unique_ptr result) override; void addResultHandler(const ResultHandler * resultHandler) override; private: std::promise> _promisedResult; const ResultHandler *_resulthandler; }; }