std::shared_future::wait

std::shared_future::wait

void wait() const;
(since C++11)

Blocks until the result becomes available. valid() == true after the call.

The behavior is undefined if valid()== false before the call to this function.

Parameters

(none).

Return value

(none).

Exceptions

(none).

Notes

The implementations are encouraged to detect the case when valid == false before the call and throw a 登录查看完整内容