MCPcopy Create free account
hub / github.com/MITK/MITK / ExecuteWithResult

Function ExecuteWithResult

Modules/Core/include/mitkStorageThreadDispatcherBase.h:93–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 */
92 template <typename R>
93 R ExecuteWithResult(std::function<R()> task)
94 {
95 R result{};
96 this->Execute([&result, &task]() { result = task(); });
97 return result;
98 }
99
100 protected:
101

Callers

nothing calls this directly

Calls 1

ExecuteMethod · 0.45

Tested by

no test coverage detected