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

Method loadModule

valdi/src/java/com/snap/valdi/ValdiRuntime.kt:276–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274 block(cachingJSRuntime!!)
275 }
276 }
277
278 override fun createScopedJSRuntime(scopeName: String, block: (ValdiScopedJSRuntime) -> Unit) {
279 val dispatchAttribution = composeJsThreadAttribution(CREATE_SCOPED_JS_RUNTIME_ATTRIBUTION, scopeName)
280 runOnJsThread(dispatchAttribution) {
281 val jsRuntime = native.getJSRuntime()
282 val scopedRuntime = ValdiJSRuntimeImpl(jsRuntime, this, jsRuntime.createNativeObjectsManager(scopeName))
283 block(scopedRuntime)
284 }
285 }
286
287 fun performGcNow(synchronous: Boolean) {

Callers

nothing calls this directly

Calls 1

loadModuleMethod · 0.65

Tested by

no test coverage detected