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

Method cancelAsync

Libraries/Async/Async.cpp:2201–2211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2199}
2200
2201SC::Result SC::AsyncEventLoop::Internal::cancelAsync(AsyncEventLoop& eventLoop, KernelEvents& kernelEvents,
2202 AsyncRequest& async)
2203{
2204 SC_LOG_MESSAGE("{} {} CANCEL\n", async.debugName, AsyncRequest::TypeToString(async.type));
2205 SC_TRY(Internal::applyOnAsync(async, CancelAsyncPhase{eventLoop, kernelEvents}))
2206 if (async.state == AsyncRequest::State::Active)
2207 {
2208 removeActiveHandle(async);
2209 }
2210 return SC::Result(true);
2211}
2212
2213SC::Result SC::AsyncEventLoop::Internal::stop(AsyncEventLoop& eventLoop, AsyncRequest& async,
2214 Function<void(AsyncResult&)>* onClose)

Callers 1

operator()Method · 0.80

Calls 2

TypeToStringClass · 0.85
ResultClass · 0.70

Tested by

no test coverage detected