Store an exception in the asynchronous result associated with
without making that result ready until the current
void set_exception_at_thread_exit( std::exception_ptr e);
has an associated asynchronous result.
e in the
asynchronous result associated with
*this. Schedule the associated asynchronous
result to be made ready when the current thread
The asynchronous result associated with
*this has a stored exception, but
is not ready until the current thread exits.
Threads blocked waiting for the asynchronous result will be unblocked
when the current thread exits.
An exception of type
with an error code of
if the asynchronous result already has a stored value or exception.
Multiple concurrent calls to
set_exception_at_thread_exit() are serialized. The completion
of the thread that made a successful call to
a call to
which retrieves the exception stored.