See Public API for a list of names and headers that are part of the public HPX API.
template<typename F, typename ...Ts>
decltype(auto) dataflow(F &&f, Ts&&... ts)#
The function template dataflow runs the function f asynchronously (potentially in a separate thread which might be a part of a thread pool) and returns a
hpx::futurethat will eventually hold the result of that function call. Its behavior is similar to
hpx::asyncwith the exception that if one of the arguments is a future, then
hpx::dataflowwill wait for the future to be ready to launch the thread. Hence, the operation is delayed until all the arguments are ready.
- template<typename F, typename ...Ts>