| 16 | namespace |
| 17 | { |
| 18 | void expect_empty(exec::async_scope& scope) |
| 19 | { |
| 20 | ex::run_loop loop; |
| 21 | ex::scheduler auto sch = loop.get_scheduler(); |
| 22 | CHECK_FALSE(ex::execute_may_block_caller(sch)); |
| 23 | auto op = ex::connect(ex::then(scope.on_empty(), |
| 24 | [&]() |
| 25 | { |
| 26 | loop.finish(); |
| 27 | }), |
| 28 | expect_void_receiver{ex::prop{ex::get_scheduler, sch}}); |
| 29 | ex::start(op); |
| 30 | loop.run(); |
| 31 | } |
| 32 | |
| 33 | #if !STDEXEC_NO_STDCPP_EXCEPTIONS() |
| 34 | //! Sender that throws exception when connected |
no test coverage detected