| 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(); |
nothing calls this directly
no test coverage detected