Opened 8 years ago

Last modified 8 years ago

#10424 assigned Feature Requests

future/shared_future::then() in case of continuation return an invalid future

Reported by: viboes Owned by: viboes
Milestone: To Be Determined Component: thread
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

Add this behavior to future/shared_future::then()

  • In case of implicit unwrapping, the validity of the future returned from then cannot be established until after the completion of the functor passed into then. In such case, the resulting future becomes ready with an exception of type future_error, with an error code of future_errc::broken_promise.

Change History (2)

comment:1 by viboes, 8 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 by viboes, 8 years ago

Even if this https://github.com/boostorg/thread/commit/bb72eadbd8fb11a2ae4d7d1999b72015e9e48012 doesn't fixes the issue, it would be needed when doing implicit unwrapping.

This depends on #10550 Implicit unwrapping from then() calls.

Note: See TracTickets for help on using tickets.