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

Function FutureArgField

include/process/gmock.hpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110template <int index, typename Field, typename T>
111PromiseArgFieldActionP2<index, Field, process::Promise<T>*> FutureArgField(
112 Field field,
113 process::Future<T>* future)
114{
115 process::Promise<T>* promise = new process::Promise<T>();
116 *future = promise->future();
117 return PromiseArgField<index>(field, promise);
118}
119
120
121ACTION_TEMPLATE(PromiseArgNotPointerField,

Callers

nothing calls this directly

Calls 1

futureMethod · 0.80

Tested by

no test coverage detected