Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorostsa committed Aug 19, 2024
1 parent ea9cda8 commit cd4e065
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion libs/core/execution/tests/unit/environment_queries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace mylib {
// Based on:
// https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/
// p2300r10.html#design-cancellation-summary
template<typename T>
template <typename T>
using callback_type = void;

bool stop_requested() const noexcept
Expand All @@ -99,8 +99,10 @@ namespace mylib {
};

#if defined(HPX_HAVE_STDEXEC)
// clang-format off
using stop_token_env_t = ex::env<allocator_env_t,
ex::prop<ex::get_stop_token_t, stop_token>>;
// clang-format on
#else
using stop_token_env_t =
ex::make_env_t<ex::get_stop_token_t, stop_token, allocator_env_t>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@ namespace hpx::execution::experimental {
connect_result_t<sender_type, receiver> op_state_;
};
};
} // namespace detail
} // namespace detail
#endif // HPX_HAVE_CXX20_COROUTINES

/// End definitions from coroutine_utils and sender
Expand Down
2 changes: 1 addition & 1 deletion libs/core/execution_base/tests/include/coroutine_task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ class basic_task
}

// Make this task generally awaitable:
friend task_awaitable<> operator co_await(basic_task && self) noexcept
friend task_awaitable<> operator co_await(basic_task&& self) noexcept
{
static_assert(well_formed<awaiter_context_t, _promise>);
return task_awaitable<>{std::exchange(self.coro_, {})};
Expand Down

0 comments on commit cd4e065

Please sign in to comment.