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

Function setPromises

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

Source from the content-addressed store, hash-verified

1853// Helper for setting a set of Promises.
1854template <typename T>
1855void setPromises(std::set<Promise<T>*>* promises, const T& t)
1856{
1857 foreach (Promise<T>* promise, *promises) {
1858 promise->set(t);
1859 delete promise;
1860 }
1861 promises->clear();
1862}
1863
1864
1865// Helper for failing a set of Promises.

Callers 3

detectedMethod · 0.85
fetchedMethod · 0.85
appointMethod · 0.85

Calls 3

foreachFunction · 0.70
setMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected