MCPcopy Create free account
hub / github.com/apache/mesos / failPromises

Function failPromises

3rdparty/libprocess/include/process/future.hpp:1867–1874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1865// Helper for failing a set of Promises.
1866template <typename T>
1867void failPromises(std::set<Promise<T>*>* promises, const std::string& failure)
1868{
1869 foreach (Promise<T>* promise, *promises) {
1870 promise->fail(failure);
1871 delete promise;
1872 }
1873 promises->clear();
1874}
1875
1876
1877// Helper for discarding a set of Promises.

Callers 2

detectedMethod · 0.85
fetchedMethod · 0.85

Calls 3

foreachFunction · 0.70
failMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected