Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ e.g.:
specified scheduler`.
- `let_value(sender, fun)` to produce a sender based on `sender`'s
results.
- `on(scheduler, sender)` to execute `sender` on `scheduler`.
- `transfer(sender, scheduler)` to complete with with `sender`'s
- `starts_on(scheduler, sender)` to start `sender` on `scheduler`.
- `continues_on(sender, scheduler)` to complete with `sender`'s
results on `scheduler`.
- `when_all(sender ...)` to complete when all `sender`s have
completed.
Expand All @@ -57,7 +57,6 @@ This project requires at least the following to build:

* A C++ compiler that conforms to the C++23 standard or greater
* CMake 3.30 or later
* (Test Only) GoogleTest

You can disable building tests by setting CMake option `BEMAN_EXECUTION_BUILD_TESTS` to
`OFF` when configuring the project.
Expand Down
13 changes: 0 additions & 13 deletions include/beman/execution/detail/set_value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@ import std;
#include <utility>
#endif

// ----------------------------------------------------------------------------

#define BEMAN_EXECUTION_SET_VALUE(rcvr, expr) \
[&]() noexcept(noexcept((expr))) -> void { \
if constexpr (::std::same_as<decltype((expr)), void>) { \
(expr), ::beman::execution::set_value(::std::move((rcvr))); \
} else { \
::beman::execution::set_value(::std::move((rcvr)), (expr)); \
} \
}()

// ----------------------------------------------------------------------------

namespace beman::execution {
/*!
* \brief Type of the customization point object for successful completions.
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-schedule-from.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import std;
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/schedules_from.hpp>
#include <beman/execution/detail/schedule_from.hpp>
#include <beman/execution.hpp>
#endif

Expand Down
29 changes: 0 additions & 29 deletions tests/beman/execution/exec-snd-expos.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,34 +192,6 @@ struct receiver {
auto set_stopped() noexcept -> void {}
};

// ------------------------------------------------------------------------

template <typename T>
struct set_value_test_receiver {
using receiver_concept = test_std::receiver_tag;
T& single_arg;
bool& no_arg;
auto set_value(auto&& value) noexcept -> void {
no_arg = false;
single_arg = value;
}
};

auto test_set_value_macro() -> void {
#ifdef BEMAN_EXECUTION_SET_VALUE
int value{42};
bool no_arg{false};
ASSERT(value == 42);
ASSERT(not no_arg);
BEMAN_EXECUTION_SET_VALUE(set_value_test_receiver<int>{value, no_arg}, []() noexcept { return 43; }());
ASSERT(value == 43);
ASSERT(not no_arg);
BEMAN_EXECUTION_SET_VALUE(set_value_test_receiver<int>{value, no_arg}, []() noexcept {}());
ASSERT(value == 43);
ASSERT(no_arg);
#endif
}

template <bool Expect, typename Query>
auto test_fwd_env_helper() -> void {
env e{42};
Expand Down Expand Up @@ -1293,7 +1265,6 @@ auto test_child_type() -> void {
} // namespace

TEST(exec_snd_expos) {
test_set_value_macro();
test_fwd_env();
test_make_env();
test_join_env();
Expand Down
1 change: 0 additions & 1 deletion tests/beman/execution/exec-stop-when.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import beman.execution;
import beman.execution.detail;
#else
#include <beman/execution/detail/stop_when.hpp>
#include <beman/execution/detail/inplace_stop_token.hpp>
#include <beman/execution/detail/sender.hpp>
#include <beman/execution/detail/completion_signatures.hpp>
#include <beman/execution/detail/set_value.hpp>
Expand Down