The basics of this look sound, but would be nice if the statements were structured consistent with the rest of the code, like so:
try { promise.set_value(); } catch (const std::future_error&) { // Ignore promise_already_satisfied }
« Back to merge proposal
The basics of this look sound, but would be nice if the statements were structured consistent with the rest of the code, like so:
try { set_value( ); already_ satisfied
promise.
} catch (const std::future_error&) {
// Ignore promise_
}