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

Method onObservableDestroyed

valdi/src/valdi/runtime/Resources/AssetsManager.cpp:756–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754 attachedData);
755 updateConsumerRequestHandler(assetConsumer, requestHandler);
756}
757
758void AssetsManager::onObservableDestroyed(const AssetKey& assetKey) {
759 if constexpr (kEnableAssetsLogs) {
760 VALDI_INFO(_logger, "Observable of '{}' destroyed", assetKey);
761 }
762
763 auto guard = lock();
764 auto managedAsset = getManagedAsset(assetKey);
765 if (managedAsset == nullptr) {
766 return;
767 }
768
769 scheduleAssetUpdate(std::move(guard), assetKey);
770}
771

Callers 1

~ObservableAssetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected