| 2199 | } |
| 2200 | |
| 2201 | SC::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 | |
| 2213 | SC::Result SC::AsyncEventLoop::Internal::stop(AsyncEventLoop& eventLoop, AsyncRequest& async, |
| 2214 | Function<void(AsyncResult&)>* onClose) |
no test coverage detected