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

Function SetPromise

library/cpp/threading/future/perf/main.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17template <typename T>
18TPromise<T> SetPromise(T value) {
19 auto promise = NewPromise<T>();
20 promise.SetValue(value);
21 return promise;
22}
23
24template <typename T>
25void TestSetPromise(const NBench::NCpu::TParams& iface, T value) {

Callers 2

DoExecuteMethod · 0.85
TestSetPromiseFunction · 0.85

Calls 1

SetValueMethod · 0.45

Tested by 1

TestSetPromiseFunction · 0.68