Let's talk about asynchronous I/O and cancellation.
Often times when you work with asynchronous tasks, you want to be able to cancel tasks.
apt-core's approach is to
1. introduce a transparent context object that gets carried around by a promise's await_transform() - you can co_await a special value to get the current one.
2. surface cancellation in normal flow: Any operation that returns an std::expected<T,E> where there exists an E::Cancelled can be cancelled.