-
#include "tensorstore/util/future.h" -
template <typename Callback,
typename PromiseValue,
typename... Futures>
FutureCallbackRegistration
tensorstore::LinkValue(Callback&& callback,
Promise<PromiseValue> promise,
Futures&&... future); Creates a “link”, which ties a
promiseto one or morefutureobjects and acallback.Same as
Link, except that thecallbackis called only if thefutureobjects become ready with a non-error result. The first error result encountered among thefutureobjects will be automatically propagated to thepromise.