hpx/async_base/sync.hpp#

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx

Functions

template<typename F, typename ...Ts>
auto sync(F &&f, Ts&&... ts) -> decltype(detail::sync_dispatch<std::decay_t<F>>::call(HPX_FORWARD(F, f), HPX_FORWARD(Ts, ts)...))#

The function template sync runs the function f synchronously and returns an hpx::future that will eventually hold the result of that function call.