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

Method flushJsQueue

valdi/test/integration/RuntimeTestsUtils.cpp:119–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void RuntimeWrapper::flushJsQueue() {
120 if (standaloneRuntime->getRuntime().getJavaScriptRuntime() != nullptr) {
121 standaloneRuntime->getRuntime().getJavaScriptRuntime()->dispatchSynchronouslyOnJsThread(
122 [](auto& jsEntry) { return; });
123 }
124}
125
126void RuntimeWrapper::flushQueues() {
127 flushJsQueue();

Callers 2

TEST_PFunction · 0.80
TEST_PMethod · 0.80

Calls 3

getJavaScriptRuntimeMethod · 0.80
getRuntimeMethod · 0.45

Tested by

no test coverage detected