Transforms module
provides utilities to convert continuable_std::future).
Contents
- Reference
Namespaces
- namespace cti::transforms
- The namespace transforms declares callable objects that transform any continuable_
base to an object or to a continuable_ base itself.
Typedefs
-
template<typename T>
using transform = detail::types::transform<T>
- A callable tag object which marks a wrapped callable object as continuable transformation which enables some useful overloads.
template<typename T>
using transform = detail::types::transform<T>
Functions
-
template<typename T>
auto make_transform(T&& callable) -> auto
- Wraps the given callable object into a transform class.
-
auto futurize() -> auto
- Returns a transform that if applied to a continuable, it will start the continuation chain and returns the asynchronous result as
std::future<...>.
-
auto flatten() -> auto
- Returns a transform that if applied to a continuable, it will ignores all error which ocured until the point the transform was applied.
template<typename T>
auto make_transform(T&& callable) -> auto
std::future<...>.Typedef documentation
template<typename T>
using transform = detail::types::transform<T>
A callable tag object which marks a wrapped callable object as continuable transformation which enables some useful overloads.
Function documentation
template<typename T>
auto make_transform(T&& callable)
Wraps the given callable object into a transform class.
auto futurize()
Returns a transform that if applied to a continuable, it will start the continuation chain and returns the asynchronous result as std::future<...>.
| Returns | Returns a
|
|---|
auto flatten()
Returns a transform that if applied to a continuable, it will ignores all error which ocured until the point the transform was applied.
| Returns | Returns a continuable with the same signature as applied to. |
|---|