template <typename ReturnType, typename Task, typename Submit>

class TestAsyncCallBuilder

Defined at line 150 of file ../../sdk/lib/async_patterns/testing/cpp/dispatcher_bound.h

The return type of |TestDispatcherBound

<T

>::AsyncCall|. In addition to

everything supported by |async_patterns::PendingCall|, it also supports

transforming the pending result to a |std::future|.

Public Methods

std::future<ReturnType> ToFuture ()

Gets a |std::future| that will resolve with the return value of the

async call. Because one needs to block on an |std::future| to obtain its

value, this function is only for use in tests. Use |promise| or |Then| with a

|Callback| in production code instead.

Defined at line 169 of file ../../sdk/lib/async_patterns/testing/cpp/dispatcher_bound.h