Christopher Kohlhoff
769dc0e149
Add this_coro::throw_if_cancelled.
...
By default, awaitable<>-based coroutines now throw an exception if they
have been previously cancelled, and then try to perform a co_await
against another awaitable<>.
To disable this behaviour for the current awaitable<>-based "thread",
perform:
co_await boost::asio::this_coro::throw_if_error(false);
It is then the responsibility of the coroutine implementation to ensure
that it checks the cancellation state of the coroutine manually, by
doing something like:
auto cs = boost::asio::this_coro::cancellation_state;
// ...
if (cs.cancelled() != cancellation_type::none)
{
// ... handle cancellation ...
}
2021-07-04 13:10:27 +10:00
..
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-07-04 13:10:27 +10:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:37:47 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-07-02 12:29:57 +10:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-07-01 10:52:01 +10:00
2021-02-25 08:29:05 +11:00
2021-07-01 10:52:01 +10:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-06-28 10:10:07 +10:00
2021-06-05 17:43:31 +10:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-07-01 10:52:01 +10:00
2021-07-01 10:52:01 +10:00
2021-07-01 10:52:01 +10:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-06-28 10:11:36 +10:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-07-01 10:52:01 +10:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00
2021-02-25 08:29:05 +11:00