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

Method finish

Libraries/Await/Await.cpp:2782–2792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2780Result AwaitTaskRegistryWaitAllAwaiter::cancel(void* object, AwaitEventLoop& eventLoop)
2781{
2782 return static_cast<AwaitTaskRegistryWaitAllAwaiter*>(object)->cancel(eventLoop);
2783}
2784
2785Result AwaitTaskRegistryWaitAllAwaiter::cancel(AwaitEventLoop&)
2786{
2787 operationResult = AwaitCancelledResult();
2788 Result cancelResult = registry.cancelAll();
2789 if (not cancelResult)
2790 {
2791 return cancelResult;
2792 }
2793 if (registry.activeCount() == 0)
2794 {
2795 finish(operationResult);

Callers

nothing calls this directly

Calls 1

resumeMethod · 0.45

Tested by

no test coverage detected