cti::transforms namespace

The namespace transforms declares callable objects that transform any continuable_base to an object or to a continuable_base itself.

Contents

Transforms can be applied to continuables through using the cti::continuable_base::apply method accordingly.

Functions

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.