-
#include "tensorstore/util/future.h"
-
template <typename T, typename U>
void tensorstore::SetDeferredResult(const Promise<T>& promise,
U&& result); If
promise
does not already have a result set, sets its result toresult
and setspromise.result_needed() = false
.This does not cause
promise.ready()
to becometrue
. The correspondingFuture
will become ready when the lastPromise
reference is released or whenpromise.SetReady()
is called.