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

Method cancelRemaining

Libraries/Await/Await.cpp:3024–3040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3022 operationResult = result;
3023 clearTaskCallbacks();
3024 continuation.resume();
3025}
3026
3027void AwaitTaskRegistryWaitAnyAwaiter::clearTaskCallbacks()
3028{
3029 for (size_t idx = 0; idx < registry.tasks.sizeInElements(); ++idx)
3030 {
3031 AwaitTask& task = registry.tasks[idx];
3032 if (not task.isValid())
3033 {
3034 continue;
3035 }
3036 AwaitTask::Promise& promise = task.handle.promise();
3037 if (promise.completionObject == this)
3038 {
3039 promise.completionObject = nullptr;
3040 promise.completionCallback = nullptr;
3041 }
3042 }
3043}

Callers

nothing calls this directly

Calls 2

isActiveMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected