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

Method makeCompletionFunction

valdi/src/valdi/runtime/Attributes/Animator.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27Value Animator::makeCompletionFunction() {
28 return Value(makeShared<ValueFunctionWithCallable>(
29 [completions = std::move(_completions)](const ValueFunctionCallContext& callContext) -> Value {
30 for (const auto& completion : completions) {
31 (*completion)(callContext);
32 }
33 return Valdi::Value::undefined();
34 }));
35}
36
37const NativeAnimator& Animator::getNativeAnimator() const {
38 return _nativeAnimator;

Callers 1

flushAnimatorMethod · 0.80

Calls 1

ValueClass · 0.50

Tested by

no test coverage detected