Skip to content

Commit

Permalink
Fix _future_sender_from_stop_token's sender-ness
Browse files Browse the repository at this point in the history
  • Loading branch information
ispeters committed Sep 1, 2024
1 parent 107f708 commit 40e3748
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/unifex/spawn_future.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,10 +745,14 @@ struct _future_sender_from_stop_token<T...>::type final {
std::printf("_future_sender_from_stop_token constructed (%p)\n", op);
}

type(type&&) noexcept = default;

~type() {
std::printf("_future_sender_from_stop_token destructing (%p)\n", op_.get());
}

type& operator=(type&&) noexcept = default;

auto operator()(inplace_stop_token stopToken) noexcept {
std::printf("invoking _future_sender_from_stop_token (%p)\n", op_.get());
return let_value_with(
Expand Down

0 comments on commit 40e3748

Please sign in to comment.