MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / close

Method close

Examples/SCExample/SCExample.cpp:176–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 }
175
176 Result close()
177 {
178 Result result(true);
179 auto preserveFirstError = [&result](Result closeResult)
180 {
181 if (not closeResult and result)
182 {
183 result = closeResult;
184 }
185 };
186
187 {
188 preserveFirstError(eventLoopMonitor.close());
189 }
190 if (timeout.isActive())
191 {
192 preserveFirstError(timeout.stop(eventLoop));
193 }
194 {
195 preserveFirstError(hotReloadSystem.close());
196 }
197 {
198 preserveFirstError(eventLoop.close());
199 }
200 return result;
201 }
202
203 private:
204 AsyncEventLoop eventLoop;

Callers 15

runAwaitProcessExitCodesFunction · 0.45
runAwaitServiceProbeFunction · 0.45
saneMainFunction · 0.45
runAwaitManifestPreviewFunction · 0.45
runAwaitConfigReloadFunction · 0.45
runAwaitBackgroundJobsFunction · 0.45
runAwaitDatagramPingFunction · 0.45
runAwaitFirstResponseFunction · 0.45
runAwaitFilePatchFunction · 0.45
runAwaitBackgroundDigestFunction · 0.45
sokol_mainFunction · 0.45
runAwaitThreadWakeUpFunction · 0.45

Calls 2

isActiveMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected