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