| 183 | } |
| 184 | |
| 185 | return_type get() |
| 186 | { |
| 187 | // Must not hold shared_ptr to coro while suspended. |
| 188 | handler_.coro_.reset(); |
| 189 | |
| 190 | if (--ready_ != 0) |
| 191 | ca_(); |
| 192 | if (!out_ec_ && ec_) throw asio::system_error(ec_); |
| 193 | return ASIO_MOVE_CAST(return_type)(value_); |
| 194 | } |
| 195 | |
| 196 | private: |
| 197 | completion_handler_type& handler_; |
no test coverage detected