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 self->doPostInit();
43 }
44 });
45}
46
47void JavaScriptWorker::setHostOnMessage(Shared<JSValueRefHolder> func) {
48 std::lock_guard<Mutex> lock(_mutex);
49 if (_state == State::Running) {
50 _hostOnMessage = std::move(func);
51 }
52}

Callers

nothing calls this directly

Calls 3

doPostInitMethod · 0.95
strongSmallRefFunction · 0.85
dispatchOnJsThreadMethod · 0.45

Tested by

no test coverage detected