MCPcopy Create free account
hub / github.com/catboost/catboost / ToFutures

Function ToFutures

library/cpp/threading/future/future_mt_ut.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56 template <class T>
57 TVector<TFuture<T>> ToFutures(const TVector<TPromise<T>>& promises) {
58 TVector<TFuture<void>> futures;
59
60 for (auto&& p : promises) {
61 futures.emplace_back(p);
62 }
63
64 return futures;
65 }
66
67 struct TStateSnapshot {
68 i64 Started = -1;

Callers 1

RunWaitTestFunction · 0.85

Calls 1

emplace_backMethod · 0.45

Tested by

no test coverage detected