MCPcopy Create free account
hub / github.com/3rdparty/libprocess / async

Function async

include/process/async.hpp:238–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236// Provides an abstraction for asynchronously executing a function.
237template <typename F>
238Future<typename result_of<F()>::type> async(
239 const F& f,
240 typename std::enable_if<!std::is_void<typename result_of<F()>::type>::value>::type*) // NOLINT(whitespace/line_length)
241{
242 return AsyncExecutor().execute(f);
243}
244
245
246template <typename F>

Callers 1

TEST_FFunction · 0.85

Calls 2

AsyncExecutorClass · 0.85
executeMethod · 0.45

Tested by 1

TEST_FFunction · 0.68