future::wait Method

Blocks the current thread until the associated asynchronous state is ready.

void wait() const;

Remarks

An associated asynchronous state is ready only if its asynchronous provider has stored a return value or stored an exception.

Requirements

Header: future

Namespace: std

See Also

Reference

future Class

<future>