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

Method TLegacyFuture

library/cpp/threading/future/legacy_future.h:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23 public:
24 inline TLegacyFuture(const TFunctionObjectType func, IThreadFactory* pool = SystemThreadFactory())
25 : Func_(func)
26 , Result_(NewPromise<TResult>())
27 , Thread_(pool->Run(this))
28 {
29 }
30
31 inline ~TLegacyFuture() override {
32 this->Join();

Callers

nothing calls this directly

Calls 2

SystemThreadFactoryFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected