blocking_get |
Defined in
<concurrency/await.hpp> |
Deprecated Use await()
.
(1) | (deprecated("Use await_for instead.")) | |
(2) | (deprecated("Use await instead.")) |
(1)
(deprecated("Use await_for instead."))Waits as long as the future is fulfilled, or throws the occurred exception
Parameters
The future on which shall be waited until the result is ready |
|||
Returns
The result of the future x
(2)
(deprecated("Use await instead."))Waits as long as the future is fulfilled, or throws the occurred exception
Parameters
The future on which shall be waited until the result is ready |
Returns
The result of the future x
Waits until the passed future is ready. Using this function causes that one thread resource is consumed which increases contention and possibly causing a deadlock. As well any subsequent non-dependent calculations on the task are also blocked. It is strongly recommended to avoid using this function, but use continuations.