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

Function setPromises

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

nothing calls this directly

Calls 2

foreachFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected