Iros
 
Loading...
Searching...
No Matches
stopped_as_error.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace di::execution {
8 struct Function {
9 template<concepts::Sender Send, concepts::MovableValue Error>
10 auto operator()(Send&& sender, Error&& error) const -> concepts::Sender auto {
11 return execution::let_stopped(util::forward<Send>(sender), [error = util::forward<Error>(error)] {
12 return execution::just_error(util::move(error));
13 });
14 }
15 };
16}
17
19}
Definition sender.h:11
Definition stopped_as_error.h:7
Definition bulk.h:30
constexpr auto stopped_as_error
Definition stopped_as_error.h:18
constexpr auto just_error
Definition just.h:87
constexpr auto let_stopped
Definition let.h:210
constexpr auto curry_back
Definition curry_back.h:141
constexpr auto c_
A value of type Constexpr<val>.
Definition constexpr.h:252
StatusCode< Erased< long > > Error
Definition error.h:8
Definition stopped_as_error.h:8
auto operator()(Send &&sender, Error &&error) const -> concepts::Sender auto
Definition stopped_as_error.h:10