Can a boost::asio::yield_context be used as a deadline_timer handler when doing cancel?
问题 I'd like to be able to do an asynchronous wait on a specific event. There are a lot of similar questions and answers on here (and all compile and work for me) but none with my specific scenario. Basically, what I need to be able to do is an async_wait, passing a yield context as the handler, to a timer that waits indefinitely, and is then canceled by another thread. For example, there is this question which does something very similar, but instead of using a yield context, it uses a separate,