| 197 | } |
| 198 | |
| 199 | void test_cancel() |
| 200 | { |
| 201 | boost::asio::io_context ctx; |
| 202 | boost::asio::steady_timer tim{ctx, std::chrono::seconds(10)}; |
| 203 | boost::system::error_code ec; |
| 204 | |
| 205 | { |
| 206 | auto p = test_cancel_impl( |
| 207 | tim, ec, boost::asio::experimental::use_promise); |
| 208 | } |
| 209 | |
| 210 | ctx.run(); |
| 211 | |
| 212 | BOOST_ASIO_CHECK_MESSAGE( |
| 213 | ec == boost::asio::error::operation_aborted, |
| 214 | ec.message()); |
| 215 | } |
| 216 | |
| 217 | } // namespace promise |
| 218 |
nothing calls this directly
no test coverage detected