MCPcopy Create free account
hub / github.com/CommE2E/comm / getAllThreadsSync

Method getAllThreadsSync

native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp:310–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310jsi::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
324void CommCoreModule::processThreadStoreOperationsSync(
325 jsi::Runtime &rt,

Callers

nothing calls this directly

Calls 2

getAllThreadsMethod · 0.45
parseDBDataStoreMethod · 0.45

Tested by

no test coverage detected