template <typename T>
class future
Defined at line 50 of file ../../third_party/github.com/google/cppdap/src/include/dap/future.h
future is a minimal reimplementation of std::future, that does not suffer
from TSAN false positives. See:
https://gcc.gnu.org/bugzilla//show_bug.cgi?id=69204
Public Methods
void future<T> ()
constructors
Defined at line 55 of file ../../third_party/github.com/google/cppdap/src/include/dap/future.h
void future<T> (future<T> && )
Defined at line 56 of file ../../third_party/github.com/google/cppdap/src/include/dap/future.h
bool valid ()
valid() returns true if the future has an internal state.
Defined at line 94 of file ../../third_party/github.com/google/cppdap/src/include/dap/future.h
T get ()
get() blocks until the future has a valid result, and returns it.
The future must have a valid internal state to call this method.
Defined at line 99 of file ../../third_party/github.com/google/cppdap/src/include/dap/future.h
void wait ()
wait() blocks until the future has a valid result.
The future must have a valid internal state to call this method.
Defined at line 106 of file ../../third_party/github.com/google/cppdap/src/include/dap/future.h
template <class Rep, class Period>
future_status wait_for (const std::chrono::duration<Rep, Period> & timeout)
wait_for() blocks until the future has a valid result, or the timeout is
reached.
The future must have a valid internal state to call this method.
Defined at line 112 of file ../../third_party/github.com/google/cppdap/src/include/dap/future.h
template <class Clock, class Duration>
future_status wait_until (const std::chrono::time_point<Clock, Duration> & timeout)
wait_until() blocks until the future has a valid result, or the timeout is
reached.
The future must have a valid internal state to call this method.
Defined at line 122 of file ../../third_party/github.com/google/cppdap/src/include/dap/future.h