CodeGlow — create beautiful code images for social media
CodeGlow
Studio
Gallery
Reset
Export PNG
Export
2x
Copy
cleanup.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const sleep = (ms: number) => { return new Promise<void>((resolve) => setTimeout(resolve, ms) ); }; const cleanupJob = async () => { console.log("🧹 cleanup started"); await sleep(8000); console.log("✅ cleanup finished"); }; setInterval(() => { cleanupJob(); }, 5000);
✨
CodeGlow
100%