-
#include "tensorstore/util/future.h"
-
template <typename T, typename... U>
requires std::is_constructible_v<Result<T>, U...>
ReadyFuture<T> tensorstore::MakeReadyFuture(U&&... u); - ReadyFuture<const void> tensorstore::MakeReadyFuture();
Creates a
Future
in a ready state.The contained result of type
Result<T>
is initialized using the specified arguments.The no-argument overload with a return type of
ReadyFuture<const void>
simply returns a global value and avoids allocations.