Create a shared_task from this task
| 270 | |
| 271 | // Create a shared_task from this task |
| 272 | shared_task<Result> share() |
| 273 | { |
| 274 | LIBASYNC_ASSERT(this->internal_task, std::invalid_argument, "Use of empty task object"); |
| 275 | |
| 276 | shared_task<Result> out; |
| 277 | detail::set_internal_task(out, std::move(this->internal_task)); |
| 278 | return out; |
| 279 | } |
| 280 | }; |
| 281 | |
| 282 | template<typename Result> |
nothing calls this directly
no test coverage detected