MCPcopy
hub / github.com/bestony/logoly / queueTask

Function queueTask

src/composables/useGeneratorControls.js:88–95  ·  view source on GitHub ↗
(task)

Source from the content-addressed store, hash-verified

86 const hydrateState = () => {
87 const hydrationTasks = [];
88 const queueTask = (task) => {
89 if (!task) return;
90 if (typeof task.then === 'function') {
91 hydrationTasks.push(task);
92 return;
93 }
94 hydrationTasks.push(Promise.resolve(task));
95 };
96
97 if (hasPersistedPrefix) {
98 queueTask(store.updatePrefix(persistedState.prefix));

Callers 1

hydrateStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected