| 552 | } |
| 553 | } |
| 554 | |
| 555 | void Runtime::runWithExclusiveJsThreadLock(DispatchFunction&& cb) { |
| 556 | if (_didInit) { |
| 557 | _javaScriptRuntime->dispatchOnJsThreadAsync(nullptr, [cb = std::move(cb)](auto& /*jsEntry*/) { cb(); }); |
| 558 | } else { |
| 559 | _mainThreadManager->dispatch(nullptr, std::move(cb)); |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | bool Runtime::disablePersistentStoreEncryption() { |
nothing calls this directly
no test coverage detected