#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 more future objects.

Same as Link, except that no callback function is called in the case that all future objects are successfully resolved. The first error result encountered among the future objects will be automatically propagated to the promise.

Parameters:
Promise<PromiseValue> promise

The promise to be linked.

Futures&&... future

The futures to be linked.

Returns:

A FutureCallbackRegistration handle that can be used to remove this link.