MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / CallAsync

Method CallAsync

include/CobaltFusion/Executor.h:110–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109 template <typename Fn>
110 auto CallAsync(Fn fn)
111 {
112 auto pTask = std::make_shared<std::packaged_task<decltype(fn()) ()>>(fn);
113 auto f = pTask->get_future();
114 Add([pTask]() { (*pTask)(); });
115 return f;
116 }
117
118 bool IsExecutorThread() const;
119 bool IsIdle() const;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected