hpx/async_distributed/trigger.hpp#
Defined in header hpx/async_distributed/trigger.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
-
namespace hpx
-
namespace actions
Functions
-
template<typename Result, typename RemoteResult, typename F, typename ...Ts>
void trigger(typed_continuation<Result, RemoteResult> &&cont, F &&f, Ts&&... vs) noexcept# Invoke f with the given arguments and forward its result to cont.
On success, the result of invoking f is passed to cont.trigger_value(). If invoking f throws, the exception is forwarded to the destination instead by calling cont.trigger_error() so that hpx::exceptions are propagated back to the client.
- Parameters
cont – The continuation that either the result or an exception is delivered to.
f – The callable to invoke.
vs – The arguments to invoke f with.
-
template<typename Result, typename F, typename ...Ts>
void trigger(typed_continuation<Result, util::unused_type> &&cont, F &&f, Ts&&... vs) noexcept# Invoke f with the given arguments and notify cont of completion. Overload for when the return type is “void” aka util::unused_type.
On success, cont.trigger() is called to signal completion. If invoking f throws, the exception is forwarded to the destination instead by calling cont.trigger_error() so that hpx::exceptions are propagated back to the client.
- Parameters
cont – The continuation that completion or an exception is delivered to.
f – The callable to invoke.
vs – The arguments to invoke f with.
-
template<typename Result, typename RemoteResult, typename F, typename ...Ts>
-
namespace actions