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

Method waited

include/process/collect.hpp:252–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250 }
251
252 void waited(const Future<T>& future)
253 {
254 CHECK(!future.isPending());
255
256 ready += 1;
257 if (ready == futures.size()) {
258 // It is safe to move futures at this point.
259 promise->set(std::move(futures));
260 terminate(this);
261 }
262 }
263
264 std::vector<Future<T>> futures;
265 Promise<std::vector<Future<T>>>* promise;

Callers

nothing calls this directly

Calls 4

isPendingMethod · 0.80
terminateFunction · 0.70
sizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected