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

Method runUpdates

valdi/src/valdi/runtime/Context/ViewNodeTree.cpp:736–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734 _context->withAttribution([&]() {
735 auto viewTransationScope = beginViewTransaction();
736 fn();
737 endViewTransaction(viewTransationScope, /* layoutDidBecomeDirty */ false);
738 });
739}
740
741bool ViewNodeTree::tryWithLock(const DispatchFunction& fn, const std::chrono::steady_clock::time_point& deadline) {
742 TrackedLock guard(_mutex, deadline);
743 if (!guard.owns()) {
744 return false;
745 }

Callers

nothing calls this directly

Calls 2

withAttributionMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected