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

Function discardPromises

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

Source from the content-addressed store, hash-verified

1877// Helper for discarding a set of Promises.
1878template <typename T>
1879void discardPromises(std::set<Promise<T>*>* promises)
1880{
1881 foreach (Promise<T>* promise, *promises) {
1882 promise->discard();
1883 delete promise;
1884 }
1885 promises->clear();
1886}
1887
1888
1889// Helper for discarding an individual promise in the set.

Callers 4

discardMethod · 0.85
discardMethod · 0.85

Calls 5

foreachFunction · 0.70
discardMethod · 0.45
clearMethod · 0.45
futureMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected