-
#include "tensorstore/util/future.h"
-
template <typename PromiseValue, typename... Futures>
FutureCallbackRegistration
tensorstore::LinkError(Promise<PromiseValue> promise,
Futures&&... future); Creates a “link”, which ties a
promise
to one or morefuture
objects.Same as
Link
, except that no callback function is called in the case that allfuture
objects are successfully resolved. The first error result encountered among thefuture
objects will be automatically propagated to thepromise
.