#include "tensorstore/util/future.h"
template <typename ResultInit, typename... Futures>
  
requires std::is_constructible_v<Result<T>, ResultInit>
static PromiseFuturePair
tensorstore::PromiseFuturePair<T>::LinkError(ResultInit&result_init,
                                             
Futures&&... future);

Creates a new PromiseFuturePair with the Future result initialized using result_init. Links the specified future objects to the newly created promise as if by calling tensorstore::LinkError.

Equivalent to:

auto pair = PromiseFuturePair<T>::Make();
pair.raw_result() = initial_result;
tensorstore::LinkError(pair.promise, future...);
return pair;
Returns:

The promise/future pair.