// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "operationdonecontext.h" #include namespace proton { OperationDoneContext::OperationDoneContext(std::shared_ptr token, std::shared_ptr done_callback) : _token(std::move(token)), _done_callback(std::move(done_callback)) { } OperationDoneContext::~OperationDoneContext() = default; bool OperationDoneContext::is_replay() const { return (!_token || _token->is_replay()); } } // namespace proton