MCPcopy Create free account
hub / github.com/experdot/pointer / getFoldersQueue

Function getFoldersQueue

src/renderer/src/stores/persistenceQueue.ts:292–299  ·  view source on GitHub ↗
(scope: WorkspaceScope)

Source from the content-addressed store, hash-verified

290}
291
292function getFoldersQueue(scope: WorkspaceScope): PersistenceQueue<'folders', PageFolder[]> {
293 return getOrCreateQueue(workspaceQueueId(scope, 'folders'), () =>
294 createPersistenceQueue<'folders', PageFolder[]>(
295 (_key, data) => persistence.workspace(scope).folders.putBatch(data),
296 DEFAULT_QUEUE_OPTIONS
297 )
298 )
299}
300
301function getPageFileQueue(scope: WorkspaceScope): PersistenceQueue<string, PageFileMutation> {
302 return getOrCreateQueue(workspaceQueueId(scope, 'page-file'), () =>

Callers 2

getPageFileQueueFunction · 0.85
queueFoldersSnapshotFunction · 0.85

Calls 5

getOrCreateQueueFunction · 0.85
workspaceQueueIdFunction · 0.85
createPersistenceQueueFunction · 0.85
putBatchMethod · 0.65
workspaceMethod · 0.65

Tested by

no test coverage detected