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

Method postInit

valdi/src/valdi/runtime/JavaScript/JavaScriptWorker.cpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void JavaScriptWorker::postInit() {
45 _runtime->dispatchOnJsThread(
46 nullptr, JavaScriptTaskScheduleTypeDefault, 0, [self = strongSmallRef(this)](JavaScriptEntryParameters& entry) {
47 self->doPostInit();
48 });
49}
50
51void JavaScriptWorker::setHostOnMessage(const Ref<ValueFunction>& func) {
52 _runtime->dispatchOnJsThread(

Callers

nothing calls this directly

Calls 3

doPostInitMethod · 0.95
strongSmallRefFunction · 0.85
dispatchOnJsThreadMethod · 0.45

Tested by

no test coverage detected