| 48 | }; |
| 49 | |
| 50 | THolder<TThreadPool> MakePool() { |
| 51 | auto pool = MakeHolder<TThreadPool>(TThreadPool::TParams{}.SetBlocking(false).SetCatching(false)); |
| 52 | pool->Start(8); |
| 53 | return pool; |
| 54 | } |
| 55 | |
| 56 | template <class T> |
| 57 | TVector<TFuture<T>> ToFutures(const TVector<TPromise<T>>& promises) { |