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
autod0=deferred{deferred{}};
autod0=sender{sender{}};
autod1=deferred{deferred{},on_submit{
[](deferred<>&in,autoout){in|submit(out);}}};
autod1=sender{sender{},on_submit{
[](sender<>&in,autoout){in|submit(out);}}};
autod2=deferred{deferred{},
[](deferred<>&in,autoout){in|submit(out);}};
autod2=sender{sender{},
[](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.
```cpp
autod0=deferred<>{deferred{}};
autod1=deferred<std::exception_ptr>{deferred{}};
autod0=sender<>{sender{}};
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()`
```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 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 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.