MCPcopy Create free account
hub / github.com/Snapchat/Valdi / cancelRequest

Method cancelRequest

valdi/test/utils/MockAssetLoader.cpp:112–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void MockAssetLoader::cancelRequest(const Ref<AssetLoaderCompletion>& completion) {
113 std::lock_guard<Mutex> lock(_mutex);
114
115 Valdi::eraseFirstIf(_completions, [&](const auto& it) { return it.lock().get() == completion.get(); });
116}
117
118void MockAssetLoader::setWorkerQueue(const Ref<TaskQueue>& workerQueue) {
119 _workerQueue = workerQueue;

Callers

nothing calls this directly

Calls 3

eraseFirstIfFunction · 0.85
getMethod · 0.65
lockMethod · 0.45

Tested by

no test coverage detected