| 308 | } |
| 309 | |
| 310 | jsi::Array CommCoreModule::getAllThreadsSync(jsi::Runtime &rt) { |
| 311 | auto threadsVector = |
| 312 | NativeModuleUtils::runSyncOrThrowJSError<std::vector<Thread>>(rt, []() { |
| 313 | return DatabaseManager::getQueryExecutor().getAllThreads(); |
| 314 | }); |
| 315 | |
| 316 | auto threadsVectorPtr = |
| 317 | std::make_shared<std::vector<Thread>>(std::move(threadsVector)); |
| 318 | jsi::Array jsiThreads = |
| 319 | this->threadStore.parseDBDataStore(rt, threadsVectorPtr); |
| 320 | |
| 321 | return jsiThreads; |
| 322 | } |
| 323 | |
| 324 | void CommCoreModule::processThreadStoreOperationsSync( |
| 325 | jsi::Runtime &rt, |
nothing calls this directly
no test coverage detected