MCPcopy Create free account
hub / github.com/Amanieu/asyncplusplus / share

Method share

include/async++/task.h:272–279  ·  view source on GitHub ↗

Create a shared_task from this task

Source from the content-addressed store, hash-verified

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
282template<typename Result>

Callers

nothing calls this directly

Calls 1

set_internal_taskFunction · 0.85

Tested by

no test coverage detected