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

Function FutureArgNotPointerField

include/process/gmock.hpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135template <int index, typename Field, typename T>
136PromiseArgNotPointerFieldActionP2<index, Field, process::Promise<T>*>
137FutureArgNotPointerField(
138 Field field,
139 process::Future<T>* future)
140{
141 process::Promise<T>* promise = new process::Promise<T>();
142 *future = promise->future();
143 return PromiseArgNotPointerField<index>(field, promise);
144}
145
146
147ACTION_P2(PromiseSatisfy, promise, value)

Callers

nothing calls this directly

Calls 1

futureMethod · 0.80

Tested by

no test coverage detected