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

Function foreach

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

Source from the content-addressed store, hash-verified

978 lambda::bind(&internal::discarded<Future<T>>, promise->future()));
979
980 foreach (const Future<T>& future, futures) {
981 future.onAny([=](const Future<T>& f) {
982 internal::select(f, promise);
983 });
984 }
985
986 return promise->future();
987}

Callers 3

setPromisesFunction · 0.70
failPromisesFunction · 0.70
discardPromisesFunction · 0.70

Calls 2

selectFunction · 0.85
discardMethod · 0.45

Tested by

no test coverage detected