Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent e5c99a5eee
commit 6ee6502010
2050 changed files with 538359 additions and 57745 deletions
+15
View File
@@ -0,0 +1,15 @@
/** Cooperative render generations shared by synchronous and future async renderers. */
export function createRenderGeneration() {
let generation = 0;
return {
begin() {
const id = ++generation;
return {
id,
isCurrent: () => id === generation,
cancel: () => { if (id === generation) generation += 1; },
};
},
invalidate() { generation += 1; },
};
}