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

Same as Link, except that the behavior matches tensorstore::LinkValue instead of tensorstore::Link.

Equivalent to:

auto pair = PromiseFuturePair<T>::Make();
tensorstore::LinkValue(callback, pair.promise, future...);
return pair;
Returns:

The promise/future pair.