\brief Producer API: instantiate a finished Future
| 407 | |
| 408 | /// \brief Producer API: instantiate a finished Future |
| 409 | static Future<ValueType> MakeFinished(Result<ValueType> res) { |
| 410 | Future<ValueType> fut; |
| 411 | fut.InitializeFromResult(std::move(res)); |
| 412 | return fut; |
| 413 | } |
| 414 | |
| 415 | /// \brief Make a finished Future<> with the provided Status. |
| 416 | template <typename E = ValueType, typename = typename std::enable_if< |
nothing calls this directly
no test coverage detected