| 158 | exec::static_thread_pool pool{2}; |
| 159 | |
| 160 | struct throwing_copy |
| 161 | { |
| 162 | throwing_copy() = default; |
| 163 | |
| 164 | throwing_copy(throwing_copy const &) |
| 165 | { |
| 166 | throw std::logic_error("cannot copy"); |
| 167 | } |
| 168 | }; |
| 169 | |
| 170 | ex::sender auto snd = scope.spawn_future( |
| 171 | ex::starts_on(pool.get_scheduler(), |