Details
-
Improvement
-
Resolution: Done
-
Minor - P4
-
3.1.5
-
None
-
Fully Compatible
-
Platform 6 07/17/15
Description
We have this sort of logic duplicated throughout the file:
some_async_method([this, op](std::error_code ec) {
|
if (op->canceled())
|
handle_cancellation;
|
if (ec)
|
handle_error;
|
|
|
// do other stuff
|
}
|
It would be nice to handle this error-checking logic in a single place.