feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
@@ -0,0 +1,4 @@
export declare const syncDriver: (interval?: number) => (update: (v: number) => void) => {
start: () => void;
stop: () => boolean;
};
+14
View File
@@ -0,0 +1,14 @@
export const syncDriver = (interval = 10) => (update) => {
let isRunning = true;
return {
start: () => {
setTimeout(() => {
update(0);
while (isRunning)
update(interval);
}, 0);
},
stop: () => (isRunning = false),
};
};
//# sourceMappingURL=utils.js.map