From f0c2ee9ac2999e8817d3283cf9b99ef8a0814a53 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Mon, 25 Mar 2024 15:37:43 -0500 Subject: [PATCH] [c++] Use std::future::get() instead of ::wait() --- libtiledbsoma/src/soma/managed_query.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtiledbsoma/src/soma/managed_query.cc b/libtiledbsoma/src/soma/managed_query.cc index ca840871ac..77bc0be458 100644 --- a/libtiledbsoma/src/soma/managed_query.cc +++ b/libtiledbsoma/src/soma/managed_query.cc @@ -56,7 +56,7 @@ ManagedQuery::ManagedQuery( void ManagedQuery::close() { if (query_future_.valid()) { - query_future_.wait(); + query_future_.get(); } array_->close(); } @@ -168,7 +168,7 @@ std::shared_ptr ManagedQuery::results() { if (query_future_.valid()) { LOG_DEBUG(fmt::format("[ManagedQuery] [{}] Waiting for query", name_)); - query_future_.wait(); + query_future_.get(); } else { throw TileDBSOMAError( fmt::format("[ManagedQuery] [{}] 'query_future_' invalid", name_));