| 116 | std::vector<Future<T>>& futures() { return futures_; } |
| 117 | |
| 118 | void SetFinished(const std::vector<std::pair<int, bool>>& pairs) { |
| 119 | for (const auto& pair : pairs) { |
| 120 | const int fut_index = pair.first; |
| 121 | if (pair.second) { |
| 122 | futures_[fut_index].MarkFinished(T(fut_index)); |
| 123 | } else { |
| 124 | futures_[fut_index].MarkFinished(Status::UnknownError("xxx")); |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | void SetFinishedDeferred(std::vector<std::pair<int, bool>> pairs) { |
| 130 | std::this_thread::sleep_for(kYieldDuration); |
no test coverage detected