mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-05-26 02:30:08 +08:00
- Add recruiter-side automation core and run-core entry - Extend sqlite-plugin with candidate info + contact logs - Add UI routes/pages, IPC handlers, progress + log panel - Document current status and plans under plan/ Made-with: Cursor
11 lines
249 B
JavaScript
11 lines
249 B
JavaScript
export function sleep (t) {
|
|
return new Promise(resolve => {
|
|
setTimeout(resolve, t)
|
|
})
|
|
}
|
|
|
|
export function sleepWithRandomDelay (min, max) {
|
|
const lo = min ?? 0
|
|
const hi = max ?? (lo + 1000)
|
|
return sleep(lo + Math.random() * (hi - lo))
|
|
} |