From fb184e2303dd9accc74ec62b42393061b13dddb5 Mon Sep 17 00:00:00 2001 From: isidorostsa Date: Sat, 17 Aug 2024 18:10:25 +0300 Subject: [PATCH] stop_token callback_type --- libs/core/execution/tests/unit/environment_queries.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/core/execution/tests/unit/environment_queries.cpp b/libs/core/execution/tests/unit/environment_queries.cpp index 0fd1a81494f..3d71adefd60 100644 --- a/libs/core/execution/tests/unit/environment_queries.cpp +++ b/libs/core/execution/tests/unit/environment_queries.cpp @@ -74,6 +74,13 @@ namespace mylib { struct stop_token { #if defined(HPX_HAVE_STDEXEC) + // TODO: Find out the correct type for this alias. + // Based on: + // https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/ + // p2300r10.html#design-cancellation-summary + template + using callback_type = void; + bool stop_requested() const noexcept { return false;