Compartir a través de


packaged_task::~packaged_task Destructor

Destroys a packaged_task object.

~packaged_task();

Remarks

If the associated asynchronous state is not ready, the destructor stores a future_error exception that has an error code of broken_promise as the result in the associated asynchronous state, and any threads that are blocked on the associated asynchronous state become unblocked.

Requirements

Header: future

Namespace: std

See Also

Reference

packaged_task Class

<future>