Skip to content
Merged
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
10 changes: 5 additions & 5 deletions include/beman/execution/detail/sender_awaitable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ class sender_awaitable {
state{::beman::execution::connect(::std::forward<Sndr>(sndr),
sender_awaitable::awaitable_receiver{::std::addressof(result)})} {}

static constexpr bool await_ready() noexcept { return false; }
bool await_suspend(::std::coroutine_handle<Promise>) noexcept {
static constexpr bool await_ready() noexcept { return false; }
::std::coroutine_handle<> await_suspend(::std::coroutine_handle<Promise> handle) noexcept {
::beman::execution::start(state);
if (::std::get<1>(this->result).exchange(true, std::memory_order_acq_rel)) {
if (::std::holds_alternative<::std::monostate>(::std::get<0>(this->result))) {
return bool(::std::get<2>(this->result).promise().unhandled_stopped());
return ::std::get<2>(this->result).promise().unhandled_stopped();
}
return false;
return ::std::move(handle);
}
return true;
return ::std::noop_coroutine();
}
value_type await_resume() {
if (::std::holds_alternative<::std::exception_ptr>(::std::get<0>(result))) {
Expand Down