MCPcopy Index your code
hub / github.com/tinyplex/tinybase / run

Function run

src/persisters/common/create.ts:158–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 };
157
158 const run = async (): Promise<void> => {
159 /*! istanbul ignore else */
160 if (!mapGet(scheduleRunning, scheduleId)) {
161 mapSet(scheduleRunning, scheduleId, 1);
162 while (
163 !isUndefined(
164 (action = arrayShift(
165 mapGet(scheduleActions, scheduleId) as Action[],
166 )),
167 )
168 ) {
169 await tryCatch(action, onIgnoredError);
170 }
171 mapSet(scheduleRunning, scheduleId, 0);
172 }
173 };
174
175 const setContentOrChanges = (
176 contentOrChanges:

Callers 1

scheduleFunction · 0.70

Calls 5

mapGetFunction · 0.90
mapSetFunction · 0.90
isUndefinedFunction · 0.90
arrayShiftFunction · 0.90
tryCatchFunction · 0.90

Tested by

no test coverage detected