MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / protectedRun

Function protectedRun

source/MRMesh/MRProtectedRun.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57} // anonymous namespace
58
59Expected<void> protectedRun( const std::function<void ()>& task )
60{
61 std::string s;
62 if ( protectedRunEx_( task, s ) )
63 return {};
64 return unexpected( std::move( s ) );
65}
66
67std::function<void ()> protectedFunc( std::function<void ()> unprotectedFunc )
68{

Callers 2

tryRun_Method · 0.85
protectedFuncFunction · 0.85

Calls 2

protectedRunEx_Function · 0.85
unexpectedFunction · 0.70

Tested by

no test coverage detected