File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 33# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44# cmake-format: on
55
6- list(APPEND EXAMPLES when_all-cancel stop_token stopping allocator)
6+ list(APPEND EXAMPLES sender-demo when_all-cancel stop_token stopping allocator)
77
88foreach(EXAMPLE ${EXAMPLES})
99 set(EXAMPLE_TARGET ${TARGET_PREFIX}.examples.${EXAMPLE})
Original file line number Diff line number Diff line change 1+ #include < beman/execution26/execution.hpp>
2+ namespace ex = beman::execution26;
3+
4+ struct receiver {
5+ using receiver_concept = ex::receiver_t ;
6+ auto set_value (auto &&...) noexcept -> void {}
7+ auto set_error (auto &&) noexcept -> void {}
8+ auto set_stopped () noexcept -> void {}
9+ };
10+
11+ int main () {
12+ // ex::sync_wait(ex::just_stopped() | ex::then([]{}));
13+ auto then = ex::just_stopped () | ex::then ([] {});
14+ static_assert (std::same_as<void , decltype (ex::get_completion_signatures (then, ex::empty_env ()))>);
15+
16+ ex::connect (ex::just_stopped () | ex::then ([] {}), receiver{});
17+ }
You can’t perform that action at this time.
0 commit comments