folly::SharedPromise::getSemiFuture

Return a Future tied to the shared core state. Unlike Promise::getFuture, this can be called an unlimited number of times per SharedPromise.

Synopsis

Declared in <folly/futures/SharedPromise.h>

SemiFuture<T>
getSemiFuture() const;

Return Value

A SemiFuture tied to the shared core state.