#include <context.hpp>
◆ ContextT
template<class T , class Action , class Deps = lager::deps<>>
◆ PromiseT
template<class T , class Action , class Deps = lager::deps<>>
◆ RetType
template<class T , class Action , class Deps = lager::deps<>>
◆ EffectBase()
template<class T , class Action , class Deps = lager::deps<>>
template<class Func >
Constructor.
- Returns
- An effect that runs
func
upon invocation. The effect will return a Promise that
- resolves after the effect is invoked, to
PromiseCombination::defaultForPromiseThen(RetType())
, if func(ctx)
returns void;
- resolves after
func(ctx)
is resolved, to what func(ctx)
resolves to, if func(ctx)
returns a Promise;
- resolves after the effect is invoked, to
func(ctx)
(converted to RetType
if it is not already one), otherwise.
◆ operator()()
template<class T , class Action , class Deps = lager::deps<>>
The documentation for this class was generated from the following file: