Opened 5 years ago

Closed 4 years ago

#8678 closed Feature Requests (fixed)

Async: Add future<>::fallback_to

Reported by: viboes Owned by: viboes
Milestone: Boost 1.55.0 Component: thread
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:


Quite often the user as a fall back value that should be used when the future has an exception.

This factory creates a new future that will fall back to the parameter if the source future will be ready with an exception. The following


is a shortcut for

  f.then([](future<T> f) {
    return f.get_or(v);

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by viboes

Milestone: To Be DeterminedBoost 1.55.0
Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 Changed 5 years ago by viboes

Committed revision [84719].

comment:3 Changed 4 years ago by viboes

Resolution: fixed
Status: assignedclosed

Changeset [85200]

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.