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

Makes a new Promise/Future pair.

The result is initialized using result_init.... The Future resolves to this initial result if the result is not set to a different value (e.g. by calling Promise::SetResult) before the last Promise reference is released.

If no arguments are specified, the initial result has an error status of absl::StatusCode::kUnknown.