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

Method tryRun_

source/MRViewer/MRProgressBar.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void ProgressBarImpl::tryRun_( const std::function<void ()>& task )
151{
152 auto maybeOk = protectedRun( task );
153 if ( !maybeOk )
154 {
155 onFinish_ = [msg = std::move( maybeOk.error() )]
156 {
157 showError( msg.c_str() );
158 };
159 }
160}
161
162} //anonymous namespace
163

Callers 2

orderWithManualFinishFunction · 0.80

Calls 3

protectedRunFunction · 0.85
showErrorFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected