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

Method Call

include/CobaltFusion/Executor.h:101–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100 template <typename Fn>
101 auto Call(Fn fn)
102 {
103 assert(!IsExecutorThread());
104 std::packaged_task<decltype(fn()) ()> task(fn);
105 Add([&task]() { task(); });
106 return task.get_future().get();
107 }
108
109 template <typename Fn>
110 auto CallAsync(Fn fn)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected