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

Method cancel

valdi/test/utils/MockAssetLoader.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 : _assetLoader(assetLoader), _completion(completion) {}
18
19void MockAssetLoaderCancelable::cancel() {
20 auto completion = _completion.lock();
21
22 if (completion != nullptr) {
23 _assetLoader.cancelRequest(strongSmallRef(completion.get()));
24 }
25}
26
27MockAssetLoader::MockAssetLoader()
28 : MockAssetLoader(

Callers

nothing calls this directly

Calls 4

strongSmallRefFunction · 0.85
cancelRequestMethod · 0.65
getMethod · 0.65
lockMethod · 0.45

Tested by

no test coverage detected