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

Method setHostOnMessage

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

Source from the content-addressed store, hash-verified

49}
50
51void JavaScriptWorker::postInit() {
52 constexpr auto reason = JsThreadDispatchReason::WorkerPostInit;
53 _workerRuntime->dispatchOnJsThread(
54 reason, JavaScriptTaskScheduleTypeDefault, 0, [self = strongSmallRef(this)](JavaScriptEntryParameters& entry) {
55 if (self->isRunning()) {
56 self->doPostInit();
57 }
58 });
59}
60

Callers 1

workerSetOnMessageMethod · 0.80

Calls 3

doSetHostOnMessageMethod · 0.95
strongSmallRefFunction · 0.85
dispatchOnJsThreadMethod · 0.45

Tested by

no test coverage detected