construct a new type with shared state across the lambdas. very useful for building a filter on top of an existing deferred. The state must be a NoneSender, but can be a super-set with additional state for this filter.
construct a new type with shared state across the lambdas. very useful for building a filter on top of an existing sender. The state must be a NoneSender, but can be a super-set with additional state for this filter.
```cpp
```cpp
autod0=deferred{deferred{}};
autod0=sender{sender{}};
autod1=deferred{deferred{},on_submit{
autod1=sender{sender{},on_submit{
[](deferred<>&in,autoout){in|submit(out);}}};
[](sender<>&in,autoout){in|submit(out);}}};
autod2=deferred{deferred{},
autod2=sender{sender{},
[](deferred<>&in,autoout){in|submit(out);}};
[](sender<>&in,autoout){in|submit(out);}};
```
```
construct a type-erased type for a particular E (which could be a std::variant of supported types). I have a plan to provide operators to collapse values and errors to variant or tuple and then expand from variant or tuple back to their constituent values/errors.
construct a type-erased type for a particular E (which could be a std::variant of supported types). I have a plan to provide operators to collapse values and errors to variant or tuple and then expand from variant or tuple back to their constituent values/errors.
```cpp
```cpp
autod0=deferred<>{deferred{}};
autod0=sender<>{sender{}};
autod1=deferred<std::exception_ptr>{deferred{}};
autod1=sender<std::exception_ptr>{sender{}};
```
```
## `single_deferred`
## `single_sender`
The `single_deferred` type in the library provides simple ways to construct new implementations of the SingleSender concept.
The `single_sender` type in the library provides simple ways to construct new implementations of the SingleSender concept.
construct a producer of nothing, aka `never()`
construct a producer of nothing, aka `never()`
```cpp
```cpp
single_deferred<>sd;
single_sender<>sd;
```
```
construct new type using one or more lambdas, or with designated initializers, use multiple lambdas to build overload sets
construct new type using one or more lambdas, or with designated initializers, use multiple lambdas to build overload sets
construct a new type with shared state across the lambdas. very useful for building a filter on top of an existing single_deferred. The state must be a SingleSender, but can be a super-set with additional state for this filter.
construct a new type with shared state across the lambdas. very useful for building a filter on top of an existing single_sender. The state must be a SingleSender, but can be a super-set with additional state for this filter.
construct a type-erased type for a particular T & E (which could be a std::variant of supported types). I have a plan to provide operators to collapse values and errors to variant or tuple and then expand from variant or tuple back to their constituent values/errors.
construct a type-erased type for a particular T & E (which could be a std::variant of supported types). I have a plan to provide operators to collapse values and errors to variant or tuple and then expand from variant or tuple back to their constituent values/errors.
construct a new type with shared state across the lambdas. very useful for building a filter on top of an existing time_single_deferred. The state must be a SingleSender, but can be a super-set with additional state for this filter.
construct a new type with shared state across the lambdas. very useful for building a filter on top of an existing time_single_sender. The state must be a SingleSender, but can be a super-set with additional state for this filter.
construct a type-erased type for a particular T & E (which could be a std::variant of supported types). I have a plan to provide operators to collapse values and errors to variant or tuple and then expand from variant or tuple back to their constituent values/errors.
construct a type-erased type for a particular T & E (which could be a std::variant of supported types). I have a plan to provide operators to collapse values and errors to variant or tuple and then expand from variant or tuple back to their constituent values/errors.