-
#include "tensorstore/util/future.h" -
template <typename Callback>
FutureCallbackRegistration
tensorstore::Promise<T>::ExecuteWhenForced(Callback&& callback) const; Registers a callback to be invoked when
Future::Forceis called on an associatedFuture.If
Future::Forcehas already been called, the callback is invoked immediately.Note
Typically, the specified
callbackfunction starts deferred work that ultimately leads to the result being set.