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

Function FutureArg

include/process/gmock.hpp:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86template <int index, typename T>
87PromiseArgActionP<index, process::Promise<T>*> FutureArg(
88 process::Future<T>* future)
89{
90 process::Promise<T>* promise = new process::Promise<T>();
91 *future = promise->future();
92 return PromiseArg<index>(promise);
93}
94
95
96ACTION_TEMPLATE(PromiseArgField,

Callers

nothing calls this directly

Calls 1

futureMethod · 0.80

Tested by

no test coverage detected