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

Function Await

include/process/gtest.hpp:104–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103template <typename T>
104::testing::AssertionResult Await(
105 const char* expr,
106 const char*, // Unused string representation of 'duration'.
107 const process::Future<T>& actual,
108 const Duration& duration)
109{
110 if (!process::internal::await(actual, duration)) {
111 return ::testing::AssertionFailure()
112 << "Failed to wait " << duration << " for " << expr;
113 }
114
115 return ::testing::AssertionSuccess();
116}
117
118
119template <typename T>

Callers

nothing calls this directly

Calls 1

awaitFunction · 0.70

Tested by

no test coverage detected